L
LDM
Hi,
I have this Struts html form in a JSP page:
<html:select property="id" onchange="submit();">
<htmlption value="">--- Choose one ---</htmlption>
<htmlptions collection="list" property="id" labelProperty="name"/>
</html:select>
When I select an option, some data are displayed under the form,
depending on the option I've selected, and the option I've chosen
still stays selected: that's ok because I stay on this page.
Now I want that when I go to another page and come back to this page,
the first option ("Choose one") is selected. Each time I come back to
the form, the last option I've selected appears selected. How to do
this???
I have this Struts html form in a JSP page:
<html:select property="id" onchange="submit();">
<htmlption value="">--- Choose one ---</htmlption>
<htmlptions collection="list" property="id" labelProperty="name"/>
</html:select>
When I select an option, some data are displayed under the form,
depending on the option I've selected, and the option I've chosen
still stays selected: that's ok because I stay on this page.
Now I want that when I go to another page and come back to this page,
the first option ("Choose one") is selected. Each time I come back to
the form, the last option I've selected appears selected. How to do
this???