I have this struts form:
<s:form ...>
<input id="foo" value="123"/>
</s:form>
I change the value of foo
then I hit back button. When I come back , foo
has lost my value and now is 123
.
How can I avoid this ?
I have this struts form:
<s:form ...>
<input id="foo" value="123"/>
</s:form>
I change the value of foo
then I hit back button. When I come back , foo
has lost my value and now is 123
.
How can I avoid this ?
This is less of Strust's concern but more of browser's decision.
Check out the following related discussions:
Browser back button restores empty fields
Clear Form on Back Button? (doing the opposite)