Yes, thanks very much, that worked out great! Anna:)
From: Matt Bathje [mailto:[EMAIL PROTECTED]
Sent: Fri 01/10/2004 10:58 AM
To: Struts Users Mailing List
Subject: Re: validator-rules.xml behaviour
In your validateDate method, are you doing an errors.add
In your validateDate method, are you doing an errors.add before
returning false? If not, no message will be put into the errors object
to be printed out.
In my custom validators, I have the methodParams looks like this:
methodParams="java.lang.Object,
org.apache.commons.validator.ValidatorAct
Take a look in FieldChecks to see how other validators work:
http://cvs.apache.org/viewcvs.cgi/jakarta-struts/src/share/org/apache/struts/validator/
Having said that, returning "false" just stops the validation from
proceeding for that field, you need to add an error message - looks to me
like y
3 matches
Mail list logo