Keith, I have done the same and to do that I would suggest taking as a
starting point the code from the Struts source code. more specifically
have a look at FieldChecks.java (Struts src code) under
shared/.../struts/validator/FieldChecks.java. It will much clearer once
you do that. It worked for me :)

HTH,
Erez

-----Original Message-----
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 07, 2003 6:05 PM
To: Struts (E-mail)
Subject: Custom Validator

Hey everyone,
I've got some nice custom validations working using the validation
framework.  However, I'm having a hard time with one seemingly imple
issue.
In the validation method in my custom validation class, how do I get the
value of the field I'm validating?
I found one example that did this, but it used deprecated methods.
Thanks in advance!

- Keith


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



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

Reply via email to