Hello everyBody,

I found a problem with the last Nightly Build (2003-09-30) with the Validator.
If I try the "struts-validator" example (found in this build) and test the "Registration" example, you get this error message for each mandatory record :

1 oct. 2003 14:05:03 org.apache.commons.validator.Validator executeValidationMethod
GRAVE: reflection: org.apache.struts.validator.FieldChecks.validateRequired(java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest)
java.lang.NoSuchMethodException: org.apache.struts.validator.FieldChecks.validateRequired(java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest)

I fact the reflect try to found this method :
org.apache.struts.validator.FieldChecks.validateRequired(java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest)

Because in the validator-rules.xml file it's declare :

<validator name="required"
            classname="org.apache.struts.validator.FieldChecks"
               method="validateRequired"
         methodParams="java.lang.Object,
                       org.apache.commons.validator.ValidatorAction,
                       org.apache.commons.validator.Field,
                       org.apache.struts.action.ActionErrors,
                       javax.servlet.http.HttpServletRequest"
                  msg="errors.required">

But the probleme is that in the "org.apache.struts.validator.FieldChecks" class the method "validateRequired" is declare :

public static boolean validateRequired(java.lang.Object bean,
                                       org.apache.commons.validator.ValidatorAction va,
                                       org.apache.commons.validator.Field field,
                                       ActionMessages errors,
                                       javax.servlet.http.HttpServletRequest request)

Best regards
--
Institut Pasteur


Olivier Dutrieux
Institut Pasteur

Institut Pasteur
Informatique de gestion
&
Micro-Informatique

25-28 rue du Docteur Roux
75724 PARIS CEDEX 15


Tel: +33 (0) 1 40 61 31 62
Fax: +33 (0) 1 45 68 89 89

<<inline: Institut Pasteur>>

Reply via email to