Hi all, I have a jsp where some of the fields like "submitted date" have default values populated in the jsp. When the user clicks on the CLEAR button all the fields shd be cleared and the default fields shd be populated with teh default values.
One possible solution would be to use the <html:cancel> button. This button performs a submit, but does not call validation.
Once the form has been submitted, in your Action class you would call the superclass' isCancelled() method to determine whether the cancel button was pressed or not. If it was, you can do whatever you need to do to make the page appear as you want it to appear and to remove the session attribute.
If you're using Struts 1.2.9 or above, you will also have to add cancellable="true" to your action mapping. [ March 05, 2007: Message edited by: Merrill Higginson ]