• Post Reply Bookmark Topic Watch Topic
  • New Topic

retain selected dropdown value in the next page  RSS feed

 
khamhielle gabriel
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


hello there,


can anyone help me on how can i be able to retain selected drop down value in the next page?


eg.


first page.jsp

value a is default in the dropdown
then i selected value c

when i click submit button


the dropdown list value on that second page should be c rather than a

cant seem to find proper script that will help >.<

thank you in advance.


God Bless you



 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66306
152
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use JSP mechanisms (JSTL and EL) to place the selected value on the <option> element that is to be selected.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!