struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Turner" <tur...@blackbear.com>
Subject RE: Validator Error
Date Thu, 02 Jan 2003 05:09:23 GMT
depends="required,mask,minlength,maxlenght"

Perhaps it wouldn't if you spelled maxlength correctly.

Been there, done that too :-)

James

> -----Original Message-----
> From: Nuno Maia [mailto:nunomaia@netvisao.pt] 
> Sent: Wednesday, January 01, 2003 11:27 PM
> To: struts-user@jakarta.apache.org
> Subject: Validator Error
> 
> 
> Validator (structs 1.1 B3) gives me an error with the this 
> configuration in validator.xml
> 
> <form-validation>
> 
>    <formset>
>       <form name="newsletterForm">
>          <field property="firstName" 
> depends="required,mask,minlength,maxlenght">
>             <arg0 key="label.firstname"/>
>          <arg1 name="minlength" key="${var:minlength}" 
> resource="false"/>
>             <arg2 name="maxlength" key="${var:maxlength}" 
> resource="false"/>
>                 <var>
>                     <var-name>mask</var-name>
>                     <var-value>^\w+$</var-value>
>                 </var>
>                 <var>
>                     <var-name>minlength</var-name>
>                     <var-value>2</var-value>
>                 </var>
>                 <var>
>                     <var-name>maxlength</var-name>
>                     <var-value>30</var-value>
>                 </var>
>          </field>    
>     </form>        
>    </formset>   
> 
> </form-validation>
> 
> 
> 



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


Mime
View raw message