A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
ActionErrors vs ActionMessages
Joined: Dec 05, 2000
Sep 01, 2006 07:40:00
I am not sure why ActionMessages are used when we can use ActionErrors. Can someone please help.
Thanks and regards,
Joined: Sep 12, 2005
Sep 01, 2006 08:20:00
ActionErrors are used to display a single kind of message, an error message.
ActionMessages allow you to have other types of messages such as confirmation messages, completion messages, etc. in addition to the error messages.
Joined: Feb 15, 2005
Sep 01, 2006 08:30:00
If you are using
1.2, ActionErrors is deprcated and you should always use ActionMessages. If you are using Struts 1.1, use ActionMessages for informational messages and ActionErrors for error messages.
Joined: Jun 16, 2003
Jan 21, 2011 13:11:40
I'm working with a Struts 1.1 app...but it may be upgraded to 1.3 in the near future. In this case would it be wise to just use the ActionMessages all the time for future compatibility?
"...and the Truth will set you free."
I agree. Here's the link:
subject: ActionErrors vs ActionMessages
validate() ActionForm : ActionErrors or ActionMessages ?
Using ActionErrors with Exceptions
ActionErrors or ActionMessages ?
ActionErrors and ActionMessages
saveErrors is deprecated
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015