View Full Version : [STRUTS] How to tell if errors exist in a Struts Action

09-16-2003, 11:22 PM
I would like to know within my Struts Action class whether an error has already been set. For example, some previous action may have forwarded to my Action. If they have set an error, I want to do something different from if there are no errors.

05-26-2004, 03:44 AM
to work with errors you can use ActionErrors class in Struts.
you can save the errors in an ActionErrors object and then display if any errors.
you also trace if any errors using the above object.