You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Erik Weber <er...@mindspring.com> on 2004/08/12 16:28:47 UTC

Validator & mutliple masks

I have two possible masks which are acceptable for a phone number text 
input.

Is there a way to tell the validator plugin (in validation.xml) that 
either of two masks is acceptable for a given field?

Thanks,
Erik


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Validator & mutliple masks

Posted by Erik Weber <er...@mindspring.com>.
Thanks Bill, I will try that.

Erik


Bill Siggelkow wrote:

> Erik Weber wrote:
>
>> I have two possible masks which are acceptable for a phone number 
>> text input.
>>
>> Is there a way to tell the validator plugin (in validation.xml) that 
>> either of two masks is acceptable for a given field?
>>
>> Thanks,
>> Erik
>
> Why don't you just use alternation in the regex?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Validator & mutliple masks

Posted by Bill Siggelkow <bi...@bellsouth.net>.
Erik Weber wrote:

> I have two possible masks which are acceptable for a phone number text 
> input.
> 
> Is there a way to tell the validator plugin (in validation.xml) that 
> either of two masks is acceptable for a given field?
> 
> Thanks,
> Erik
Why don't you just use alternation in the regex?


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org