I just checked in the change to CVS and it will be in the
2003-10-02 build of struts.
Next time you could use Bugzilla ?
http://nagoya.apache.org/bugzilla/
It only takes a minute to get an account.
Thanks for reporting the bug !!!
-Rob
dutrieux wrote:
Just a other information : if you modify in the "validator-rules.xml" file for each method parameter "org.apache.struts.action.ActionErrors" to org.apache.struts.action.ActionMessages" : the problem disapear and that work now perfectly.
Olivier Dutrieux
dutrieux a écrit :
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
<<inline: Institut Pasteur>>
<<inline: Institut Pasteur>>