cs-joke.pl forum

Full Version: Pomoc na pytanie JSTL
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
cześć, jak mogę zachować listę rozwijaną użytkownika? za każdym razem, gdy wybiorę inną opcję i załaduję obraz. lista rozwijana domyślnie wróci do zastosowania.   <body> <h2> Wybierz ten, który lubisz </h2> <c: set var = "pics" value = "jabłko, wiśnie, zielona gruszka, cytryna" /> <c: set var = "target" value = "$ {param.picture}" /> <c: if test = "$ {pusty cel}"> <c: set var = "target" value = "apple" /> </ c: if> <form name = "thisForm" method = "POST"> <select name = "picture" onchange = "document.thisForm.submit ()"> <c: forEach var = "fruit" items = "{pics}">    ?????   </ c: forEach> </select> <br/> <img src = "images / $ {target} .png" /> </form> </body> </html>