I'm trying to use Struts Validator to validate a 4 digit numeric using a
mask:

<field
   property="ssn"
   depends="mask">
       <arg0 key="register.form.ssn.displayname"/>
       <var>
           <var-name>mask</var-name>
           <var-value>^[0-9]{4}*$</var-value>
       </var>
</field>

Which causes:

"Invalid expression: ^[0-9]{4}*$ Nested repetitions *?+ in expression"

The expression '[0-9]^4' causes no exception but it throws out '0000' as not
valid.

Any assistance is appreciated.


Greg

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to