Tried that - it still performs the server-side validation.

----- Original Message ----- 
From: "Norm Deane" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Friday, August 22, 2003 12:07 PM
Subject: RE: Bypassing Form Validation


> Try
> 
> <html:cancel onclick="bCancel=true;"/>
> 
> 
> -- 
> Norm Deane
> MIS Consultant
> Vanderbilt University
> (615) 322-7855
> [EMAIL PROTECTED] 
> 
> -----Original Message-----
> From: David Stemm [mailto:[EMAIL PROTECTED] 
> Sent: Friday, August 22, 2003 10:39 AM
> 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]
> 
> 

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

Reply via email to