This must be really simple but I just can't get the hang of it.
I have a normal
struts form that performs the validate method, if there are errors it returns back to the same
jsp page that has the HTML form. Struts being lovely also pre-populates the fields with the data from the Struts Form object now in session.
I need to click on the "reset" or "clear" button on that form and be able to clear out all the fields of the form just like standard HTML reset behaviour.
When I try that the fields that were pre-populated to the HTML form do not clear out. What can i do to overcome this, other than the manual way of having a javascript that can go and clear each and every field in the form manually.
Consider a form with just too many fields to do that !
I hope this has been addressed by someone before..