Hi All:

I have 3 validation for a field: "required", "minLength" & "all alphabets" (mask)

I get the following exception while validating:

[ERROR] Validator - -reflection: null 
<java.lang.reflect.InvocationTargetException>java.lang.reflect.InvocationTargetException:
 java.lang.NoClassDefFoundError: org/apache/oro/text/perl/Perl5Util
        at 
org.apache.commons.validator.GenericValidator.matchRegexp(GenericValidator.java:107)
        at org.apache.struts.validator.FieldChecks.validateMask(FieldChecks.java:271)
        at java.lang.reflect.Method.invoke(Native Method)

If I remove the Mask part for this field in validation.xml, everything seem to work 
fine and my other 2 validations for the same field seem to work fine.

Am I missing anything in path settings relating to Validator Framework?

Thanks,
Pani
PS:
Extract form validation.xml
<field property="lastName" depends="required,mask,minlength">
 <msg name="mask" key="errors.onlyalpha"/>
 <arg0 key="ex.register.info.lName"/>
 <arg1 name="minlength" key="${var:minlength}" resource="false"/>
 <var>
  <var-name>mask</var-name>
  <var-value>^[a-zA-Z]*$</var-value>
 </var>
 <var>
  <var-name>minlength</var-name>
  <var-value>2</var-value>
 </var>
</field>




____________________________________________________________
Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail!
http://login.mail.lycos.com/r/referral?aid=27005

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to