struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Skip Hollowell <s...@skipdaddy.com>
Subject Re: [S2] Validation setup
Date Mon, 09 Apr 2007 16:23:18 GMT
minLength and maxLength (case is important and I am an idiot)

Done and done.  Thanks Dave for helping where you could.  Much appreciated.

Skip.

Skip Hollowell wrote:
> Now, if I could only figure out why I am getting errors on the minlength
> and maxlength of my stringlength validator:
>    <field name="payment.ccExpDate">
>         <field-validator type="requiredstring">
>             <message key="requiredstring"/>
>         </field-validator>
>         <field-validator type="stringlength">
>           <param name="minlength">4</param>
>           <param name="maxlength">4</param>
>           <message key="expDateLength"/>
>         </field-validator>
>     </field>
>
> WARNING: Caught OgnlException while setting property 'minlength' on type
> 'com.opensymphony.xwork2.validator.validators.StringLengthFieldValidator'. 
>
> ognl.NoSuchPropertyException:
> com.opensymphony.xwork2.validator.validators.StringLengthFieldValidator.minlength 
>
>



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


Mime
View raw message