IntelliJ Java IDE
The moose likes JSP and the fly likes retain selected dropdown value in the next page Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "retain selected dropdown value in the next page" Watch "retain selected dropdown value in the next page" New topic
Author

retain selected dropdown value in the next page

khamhielle gabriel
Greenhorn

Joined: Aug 15, 2011
Posts: 16


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 opinionated walrus
Marshal

Joined: Jan 10, 2002
Posts: 50693

Use JSP mechanisms (JSTL and EL) to place the selected value on the <option> element that is to be selected.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
 
subject: retain selected dropdown value in the next page
 
Threads others viewed
Spring - loading text field
JSP and Dropdown Box
Retaining drop down values on page submit
Retaining selected value in combo box after refresh
select comes to default again
IntelliJ Java IDE