I had this issue too.
form.reset() resets fields in the form back to their original state when the
page loaded. Chances are the form's original state was populated. You may
want your reset button to call a method that sets all your fields to blank
instead of using form.reset()

-----Original Message-----
From: Puneet Lakhina [mailto:[EMAIL PROTECTED] 
Sent: 31 July 2006 06:06
To: Struts Users Mailing List
Subject: Reset Button

I have a simple form which has 4 fields a submit and a reset button. WHen
the form is initially loaded, everything works fine, and the reset button
actually sets the values to their default values according to the form bean.
But on a certain condition in my action i forward back to the form i.e.

mapping.findInputforward();

after this the reset button stops working. The values entered earlier are
not set to their defaults. Any ideas why it could be happening, or is it
something i have understood wrong.

THanks
-- 
Puneet



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to