General J2EE: How to reset a html:form after submit
hi, in struts html:form tag after got redirect when i referesh the page it will insert pervious form value to the database how to overcome this proplem
- Posted by: arulraj murugesan
- Posted on: April 16 2009 02:00 EDT
you can use the token field in the struts2 framework to avoid this issue. under the struts1 environment, you can manully insert a token field in the form, and match the random string in the session scope, thus, if you resend the form data, you can distinguish the outdated form data. good luck!