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
to me
like you need to add ActionMessages to your validateDate() method
Niall
- Original Message -
From: "Anna Kerekes" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, October 01, 2004 3:42 PM
Subject: validator-rules.
Hello,
I am trying to add my own custom validation method to my validator-rules.xml file.
Here's the new snippet I am adding (Validator is a utility class I wrote to perform
extra validation):
I have tried debugging my code, the validator does indeed go into my validateDate
method and retur
4 matches
Mail list logo