This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
I have an ActionForm which makes use of the Struts Validator and adds errors to an ActionErrors object. I am wondering if it is possible to detect the presence of these errors when Struts redirects back to the input Action.
If validate is set to true in the actionmapping and validation returns errors, the action never gets called and the request gets forwarded to the page defined in the input attribute (which is typically the same as the page that submitted the form).
If you really need some extra functionality, there's a way around it.
Be specific what you wish to accomplish and I'll be more than happy to help out.
A good workman is known by his tools.
Joined: Mar 15, 2004
Thanks for the clarification, Marc. I should have better explained what I would like to do. If validate is set to "true" and the validation returns errors, is it possible to detect for the presence of such errors in the Action class defined in the input attribute? Thanks again for your help!