struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Denis Wang <dw...@brandmuscle.com>
Subject struts: error/message handling: saveErrors
Date Thu, 03 Jul 2003 15:48:27 GMT
Hello, all,

I have the following problem:
In ActionA{
	....
                ActionErrors errors = new ActionErrors();
                errors.add( ActionErrors.GLOBAL_ERROR, new ActionError(
"Afailed" ) );
                saveErrors( request, errors );
}

In ActionB{
	....
                ActionErrors errors = new ActionErrors();
                errors.add( ActionErrors.GLOBAL_ERROR, new ActionError(
"Bfailed" ) );
                saveErrors( request, errors );
}

When ActionA returns it will forward the processing to ActionB and then the
"Bfailed" error will override the "Afailed" error.

How can I show both "Afailed" and "Bfailed" error messages?  Thanks a lot!
Denis



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message