cs-joke.pl forum
Pomoc na pytanie JSTL - Printable Version

+- cs-joke.pl forum (https://cs-joke.pl)
+-- Forum: Komputery (https://cs-joke.pl/forum-1.html)
+--- Forum: Windows (https://cs-joke.pl/forum-4.html)
+--- Thread: Pomoc na pytanie JSTL (/thread-30179.html)



Pomoc na pytanie JSTL - danielpsyc - 09 Nov 2019

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>