Instead of a reset you could use a simple button and the related onClick
event to call a javascript that sets all field to "".
What do you think about this "workaround"?
Take note that it isn't an expected behaviour for a reset button. I suggest
you to name such a button with a value different from "reset". What do you
think about "wipe" or "erase"?
Bye,
aris.

----- Original Message ----- 
From: "O. Oke" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November 29, 2004 3:01 PM
Subject: Reset button does not clear JSP fields


> Please help!
>
> Background
> ==========
> I retrieve data from the database, copy the data into
> an Action Form, the data is then automatically entered
> into corresponding fields.
>
>
> After viewing the data, I want the RESET button to
> empty all fields whenever it is clicked.  Presently,
> after clicking the RESET button, all fields still have
> data.  I believe the fields are repopulated with the
> data in the Action Form.
>
> Does the RESET button have to forward to an Action
> class that in turn replaces the relevant Action Form
> in the relevant scope with an Action Form that has no
> data? If not, can you please tell me the conventional
> Struts way of setting all JSP fields to empty.
>
> Note:  In the reset method of the Action form, I set
> all fields to "" .
>
> Thank you.
>
> O. Oke
>
>
>
> ___________________________________________________________
> Moving house? Beach bar in Thailand? New Wardrobe? Win £10k with Yahoo!
Mail to make your dream a reality.
> Get Yahoo! Mail www.yahoo.co.uk/10k
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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

Reply via email to