Re: Cancel button sets the form value

2006-06-20 Thread Monkeyden
Yeah, I have used DispatchAction in the past but found it a bit klugey. Rather than adding the querystring parameters in the Struts config for dispatch, I overrode the processActionPerform method in RequestDispatcher. I forget the specifics of the way DispatchActions are handled but at the time

RE: Cancel button sets the form value

2006-06-19 Thread Mukta
If you want to reset the form values on cancel button click, you should use html:reset instead of html:cancel -Original Message- From: deepali sharma [mailto:[EMAIL PROTECTED] Sent: Friday, June 16, 2006 1:01 PM To: user Subject: Cancel button sets the form value Hi I am using

Re: Cancel button sets the form value

2006-06-19 Thread Monkeyden
Sounds like you're expecting to do something with the form after after cancel is selected. If, from a user experience perspective, the cancel button is doing what it's supposed to, you shouldn't care what the form has in it since the user cancelled anyway. I don't use the execute() method of

Re: Cancel button sets the form value

2006-06-19 Thread Rick Reumann
Monkeyden wrote: I don't use the execute() method of Action at all and have implemented a separate abstract doCancel method in my base action, which cleans up any unecessary state, but this requires an extension of the struts/tiles request processor. I find it easier just to use an

Cancel button sets the form value

2006-06-16 Thread deepali sharma
Hi I am using html:cancel button before clicking on html:cancel button i am changing the values in the form. But I want so that If the user clicks on html:cancel the values should not be set to the form Is there any solution for this -- cheers deepali