[prev in list] [next in list] [prev in thread] [next in thread] 

List:       struts-user
Subject:    Re: Validator Framework - problem using Mask
From:       "Pani R" <pani_rd () lycos ! com>
Date:       2004-01-30 21:29:25
Message-ID: KADPCMOINALFBKAA () mailcity ! com
[Download RAW message or body]

Thanks Guys.

It fixed the problem. But I dont how WSAD missed this JAR file. Anyway, it works now. Thank you all.

Regards,
Pani


--

--------- Original Message ---------

DATE: Fri, 30 Jan 2004 13:49:29
From: "Matt Bathje" <mpb@ntsource.com>
To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
Cc: 

>Pani - it looks like you may be missing jakarta-oro.jar from your
>WEB-INF/lib directory. (Or have an older version of it possibly).
>
>Make sure it exists, and if not get it from either your struts
>distribution's lib directory or from the apache website and put it into
>WEB-INF/lib.
>
>If it does exist, download the version from the apache website and put it
>into WEB-INF/lib and see if that fixes the problem.
>
>
>Matt Bathje
>
>
>----- Original Message ----- 
>From: "Pani R" <pani_rd@lycos.com>
>To: "Struts Users List" <struts-user@jakarta.apache.org>
>Sent: Friday, January 30, 2004 11:49 AM
>Subject: Validator Framework - problem using Mask
>
>
>> Hi:
>>
>> I get the following exception while validating the mask part of a field.
>>
>> Exception:
>>
>> [ERROR] Validator - -reflection: null
><java.lang.reflect.InvocationTargetException>java.lang.reflect.InvocationTar
>getException: java.lang.NoClassDefFoundError:
>org/apache/oro/text/perl/Perl5Util
>> at
>org.apache.commons.validator.GenericValidator.matchRegexp(GenericValidator.j
>ava:107)
>> at
>org.apache.struts.validator.FieldChecks.validateMask(FieldChecks.java:271)
>>
>>
>> Extract from my validation.xml:
>>
>> <field property="firstName"
>>        depends="required,mask,minlength">
>> <msg name="mask" key="errors.onlyalpha"/>
>> <arg0 key="ex.register.info.fName"/>
>> <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>
>>
>> I dont know if this has got to do with the any path settings or versions
>'am using with. Anyways, 'am using WSAD5.1, WAS 4.0 TestEnv, J2EE 1.2 with
>Struts 1.1 support, JDK 1.3.1.
>>
>> I appreciate any response.
>>
>> Thanks,
>> Pani
>>
>>
>>
>> ____________________________________________________________
>> 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: struts-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>



____________________________________________________________
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: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic