struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian K. Buckley" <>
Subject extending StrutsValidator
Date Fri, 30 Nov 2001 13:34:27 GMT

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.


public class MyValidator extends StrutsValidator {

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


<validator name="widget"

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message