Hello,

I've attempted to write my own Validator class by extending StrutsValidator.
My class adds my own static validate method.  It doesn't work.  Instead,
when I use it I get a message appearing in the Tomcat console
"Validator::validate() reflection - MyValidator".

What's wrong?  Is this a proper use of the Validator framework?

Shown below is my class and also my corresponding validator entry in my
validate.xml file.

-Brian

public class MyValidator extends StrutsValidator {

    public static boolean validateWidget(Object bean,
        ValidatorAction va, Field field,
        ActionErrors errors,
                             HttpServletRequest request, ServletContext
application) {
  ...

}

<validator name="widget"
                 classname="MyValidator"
                 method="validateWidget"
                 depends="required"
                 msg="errors.widget"
</validator>




--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to