T
Tony Piazza
Does anyone out there know what could be causing a NoSuchMethodException to
be thrown when I use a custom validator in Struts 1.1?
Here is the scenario:
I have created a class named StateValidator that contains a single method
named isValid(). The method signature is the same as the standard
validators that are included in the Struts 1.1 release. I refer to the
validator in validation.xml for a specific <field> element. The validator
is configured in validator-rules.xml with the same methodParameters as the
standard validators included in that file. When Struts attempts to validate
the form I get a NoSuchMethodException thrown in
org.apache.commons.validator.Validator (line 401). I was sure that I must
have my method signatures somehow messed up but I have reviewed that several
times and that is not the problem. Does anyone out there have experience
with this problem?
Thanks in advance for your assistance!
Tony Piazza
be thrown when I use a custom validator in Struts 1.1?
Here is the scenario:
I have created a class named StateValidator that contains a single method
named isValid(). The method signature is the same as the standard
validators that are included in the Struts 1.1 release. I refer to the
validator in validation.xml for a specific <field> element. The validator
is configured in validator-rules.xml with the same methodParameters as the
standard validators included in that file. When Struts attempts to validate
the form I get a NoSuchMethodException thrown in
org.apache.commons.validator.Validator (line 401). I was sure that I must
have my method signatures somehow messed up but I have reviewed that several
times and that is not the problem. Does anyone out there have experience
with this problem?
Thanks in advance for your assistance!
Tony Piazza