...

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



wac
09-16-2003, 10: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.

hema
05-26-2004, 02: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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum