You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by taranjeet <ta...@hotmail.com> on 2002/04/07 13:14:25 UTC

Struts Validator

Hi,



I am using struts-validator for form validations,

it is working fine for Save submit but I dont want to validate form for search button , 

I tried  the switch to cancel validation it isn't workng

<html:submit onclick="bCancel=true;" styleClass="innoButton">

I am using Struts_Validator-20010308.jar,jakarta-regexp-1.2.jar,struts20010306.jar,struts.jar 

Please advise




Re: Struts Validator

Posted by David Winterfeldt <dw...@yahoo.com>.
This wasn't added until 6/17/2001.

http://home.earthlink.net/~dwinterfeldt/revision.html
Update 6/17/2001 (using Struts 1.0)
A bCancel variable was added to the
JavascriptValidatorTag code generation so the onclick
attribute of the html:cancel tag can be assigned
"bCancel=true;" so the JavaScript validation isn't
performed and the onclick attribute of a html:submit
tag can be assigned "bCancel=false;". 

David

--- taranjeet <ta...@hotmail.com> wrote:
> Hi,
> 
> 
> 
> I am using struts-validator for form validations,
> 
> it is working fine for Save submit but I dont want
> to validate form for search button , 
> 
> I tried  the switch to cancel validation it isn't
> workng
> 
> <html:submit onclick="bCancel=true;"
> styleClass="innoButton">
> 
> I am using
>
Struts_Validator-20010308.jar,jakarta-regexp-1.2.jar,struts20010306.jar,struts.jar
> 
> 
> Please advise
> 
> 
> 
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>