Sorry Hubert, I tried with validate=false also. It is not working. Moreover when I press Inactivate button, before going to the Inactivate Plan Action class it is going to the validator rules.xml and does the validation. So somehow I want to disable the form validations when I click the Inactivate button.
Regards, Krishna Mohan From: Cliff [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 05, 2005 7:36 AM To: Struts Users Mailing List; Hubert Rabago Subject: Re: HOw to avoid validations for certain submit buttons on a singleform? Hi, Could I ask where to set the bCancel ? as a parameter in the request ?? Thx a lot. Cliff ----- Original Message ----- From: "Hubert Rabago" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <user@struts.apache.org> Sent: Wednesday, January 05, 2005 2:27 AM Subject: Re: HOw to avoid validations for certain submit buttons on a single form? > Like Jim said, take a look at the validate=false attribute for the > /InactivatePlanAction. Also, the javascript validation will kick in > by default. You can add an onClick handler to the "Inactivate" button > to set "bCancel=true;" so the javascript validation is skipped. > > Hubert > > On Tue, 4 Jan 2005 10:19:06 -0700, Jim Barrows <[EMAIL PROTECTED]> wrote: > > > -----Original Message----- > > > From: Krishna Mohan Radhakrishnan [mailto:[EMAIL PROTECTED] > > > Sent: Tuesday, January 04, 2005 9:28 AM > > > To: Struts Users Mailing List > > > Subject: HOw to avoid validations for certain submit buttons > > > on a single > > > form? > > > > > > But can I achieve the result in a single Actionform. > > > > Yes. > > Read the validation and struts-config documentation and DTD's for further details. Something about validate being false. > > --------------------------------------------------------------------- > 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]