• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Retain the combo box value when the page is revisited

 
pratyusha vemulapalli
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this is my jsp code, now I want the value that I have selected earlier to be reselected when I hit the Back button in my next page.

<form:select id="getAddress" name="getAddress" path="" >
<c:forEach items="${addresses}" var="addresses">
<form:option value="${addresses.key}" label="${addresses.value}" ></form:option>
</c:forEach>
</form:select>


Can you please help in how to go ahead with this problem. Looking forward for a solution that woulld clear my trouble.

Thanks in advance
Pratyusha
 
Vicky Vijay
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Back Button"..... refers ?

Are you referring this Back button to

"Browser back button"

or

"Button provided in your own JSP"
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65216
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's not a "combo box". Using correct terminology is important. Please read HtmlHasNoComboBox.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic