There are 2 ways to solve this problem 1. through Javascript 2. in FormBean
1. Write the even on the Onsubmit of the form <form name="DDD" action="abc.do" onSubmit="return CallSomeJAVAScript()" > on this javascript method return false when cancel is clicked. 2. On Validate method of the form bean you can check the Cancel button clicked if yes then return or do validation. Thanks Nazeer -----Original Message----- From: David Stemm [mailto:[EMAIL PROTECTED] Sent: Friday, August 22, 2003 12:39 PM To: Struts Users Mailing List Subject: Bypassing Form Validation I'm having trouble trying to cancel out of a form. I have a cancel button that looks like this: <html:submit title="Cancel" value="Cancel" property="submit" tabindex='24' onclick="bCancel=true;"/> and while the onclick event does cancel out the javascript validation it still goes ahead and performs the server-side validation and I get errors saying certain fields are required, etc. I'm using a DynaValidatorForm and my action class inherits from DispatchAction. Anybody have any ideas? David Stemm --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

