You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Kelvin wu <ke...@ctihk.com> on 2003/07/04 12:40:04 UTC
question about depends attribute in validator-rule.xml
Hi, i am using struts validator and want to add a validation rule by myself.
i want the required validator only do validation when my custom validator
return true.
How can i do this?
What is the meaning of depends attribute of validator element in
validator-rules.xml?
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: question about depends attribute in validator-rule.xml
Posted by Adam Hardy <ah...@cyberspaceroad.com>.
it's the attribute you use to set the validation tests you want
validator to carry out, e.g. required, maxlength, creditCard
Kelvin wu wrote:
> Hi,
> could anyone tell me the meaning of depends attribute of validator element
> in validator-rules.xml?
>
>
>
> ----- Original Message -----
> From: "Kelvin wu" <ke...@ctihk.com>
> To: "Struts Users Mailing List" <st...@jakarta.apache.org>
> Sent: Friday, July 04, 2003 6:40 PM
> Subject: question about depends attribute in validator-rule.xml
>
>
>
>>Hi, i am using struts validator and want to add a validation rule by
>
> myself.
>
>>i want the required validator only do validation when my custom validator
>>return true.
>>How can i do this?
>>
>>What is the meaning of depends attribute of validator element in
>>validator-rules.xml?
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: question about depends attribute in validator-rule.xml
Posted by Kelvin wu <ke...@ctihk.com>.
Hi,
could anyone tell me the meaning of depends attribute of validator element
in validator-rules.xml?
----- Original Message -----
From: "Kelvin wu" <ke...@ctihk.com>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Friday, July 04, 2003 6:40 PM
Subject: question about depends attribute in validator-rule.xml
> Hi, i am using struts validator and want to add a validation rule by
myself.
>
> i want the required validator only do validation when my custom validator
> return true.
> How can i do this?
>
> What is the meaning of depends attribute of validator element in
> validator-rules.xml?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org