The nature of the reset button is to reset the html form back to it's
original state. So, if you have a prepoluated form and use the reset it will
not submit. It will only change the values of the form back to it's default
state. If you want to make the form black as a result of a button click then
you will either have to set up a new button and make a request on the server
then pass back a blank, unpopulated form. If you want to use javascript you
will have to intercept the form submit and then set all of the form values
to blank within a javascript funtion. Personally, I would go the server
route and have the Action produce a blank form.

Brandon Goodin

-----Original Message-----
From: Mike Whittaker [mailto:[EMAIL PROTECTED]
Sent: Friday, May 30, 2003 5:27 PM
To: Struts Users Mailing List
Subject: RE: <html:button> - How do you detect which button was clicked.


>
>Read the docs on DispatchAction/LookupDispatchAction. But, basically, give
>your buttons both the same name. Then whichever one is clicked will be the
>value. Then you can determine what needs to be done server side.
>
>Brandon Goodin
>

And should I use one of these if I want to reset a form, which has been
prepopulated, and the user wishes a blank form.  One button to submit, one
button for the raw jsp (reset)?

--
Mike W


---------------------------------------------------------------------
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