struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <newton.d...@yahoo.com>
Subject Fwd: Struts 2 Custom Validation
Date Wed, 27 Feb 2008 15:05:32 GMT
I've forwarded this to the struts-user list; it's better to ask questions
there.

--- Thaminda Karunanayake <thamindadarshana@gmail.com> wrote:
> From: "Thaminda Karunanayake" <thamindadarshana@gmail.com>
> I'm using Struts 2 client side validation to validate a password
> confirmation field.
> But to do that I can't use any validator that is already there because non
> of them is appropriate for the task.
> So I wrote a custom validator class and included it in the
> validators.xmlfile. (I created it in the classpath)
> But now the program does not work and throws an exception when I try to
> login. The exception is
> 
> java.lang.NoClassDefFoundError: Could not initialize class
> com.opensymphony.xwork2.validator.ValidatorFactory
> 
> The program works when the dafault validators.xml class is used. (when I
> take my validators.xml file out)
> 
> Do you have any suggestions for this problem? If you do, I'd be really
> really grateful to you if you could kindly reply.
> 
> 
> Thanking in advance........
> 
> Thaminda
> 


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


Mime
View raw message