You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Brown, James" <ja...@ca.unisys.com> on 2003/12/15 16:09:43 UTC
intRange Not accepting leading 0
I have a validator rule setup as follows:
<field property="month" depends="required,intRange">
<arg0 key="review.label.month"/>
<arg1 name="intRange" key="${var:min}" resource="false"/>
<arg2 name="intRange" key="${var:max}" resource="false"/>
<var>
<var-name>min</var-name>
<var-value>1</var-value>
</var>
<var>
<var-name>max</var-name>
<var-value>12</var-value>
</var>
</field>
If the user enters '08', the validation javascript returns 'Month is not in the range 1 through 12'. How do I enable input of the leading '0'.
Cheers,
James
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org