How to implement Clear and Reset Functionality in struts?
Note: Iam using struts 1.2.9
In both the cases iam using reset button but with different functionality, but iam unable to get the expected result..
I have used reset tag for clearing the struts form fields, it works for the first time.......but the problem is iam doing validations on the server side, so if validation fails same form will be displayed with populated html data and errors.....now if i click on reset button nothing will happen.
need help regarding........
Clear: All struts html fields data has to be cleared (Using while adding data)
Reset: By default struts html fields will be populated with the data, after doing some modification if user clicks on reset button, the same default data has to be displayed in the fields. (Using while editing data)
Joined: Mar 28, 2006
how i should handle the reset functionality, when validation fails form will be set the current data and reset operation fails?
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com