Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

struts migration - ActionError Server Side

tom tom

2007-03-22

Replies:

Hi,

How can I convert the following struts 1.x to struts
2.0.6.

ActionError actionError = new ActionError("");
ActionMessage actionMessage = new
ActionMessage("error.test.error1");

actionErrors.add(ActionErrors.GLOBAL_MESSAGE,
actionMessage);

above is in a action class and error.test.error1 is
the key for the message in the resource bundle.

Any documentation on this.

Thanks



____________________________________________________________________________________
Sucker-punch spam with award-winning protection.
Try the free Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/features_spam.html

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.