views:

7

answers:

0

In my application i load data from the DB to the web form and client can edit the fields and update the data. I use reset button, if user need to reset the form with original DB data after he edit some fields.

However, once user edit some fields and submit the application, if there is any validation errors(I use validation xmls) user can't reset the form to original DB data. Because the session object is changed with new values which already validated.

I use struts2 and spring connection. I validate the form using validation interceptor. So please share you experience to reset the form even the validation is fired.