struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Schachter, Michael" <>
Subject Volunteer: Enhanced Form Validation
Date Mon, 02 Oct 2000 16:09:45 GMT
I'd like to volunteer to improve the validate() method of
ValidatingActionForm in a way that
will preserve backwards compatibility.

The following method could be added to ValidatingActionForm to add the
ability to check more global form requirements:

public String[] validate(ActionServlet servlet, ActionMapping mapping,
HttpServletRequest request, HttpServletResponse response);

To preserve backwards compatibillity, the processValidate() method of
could attempt to call this new method in a try block and catch an
which would be thrown if the form class doesn't implement the new method.
In the
event that this error is caught, the old validate() method could be called.
I attached a file demonstrating the
change to this


View raw message