This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes ActionMessage replacing ActionErrors? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "ActionMessage replacing ActionErrors?" Watch "ActionMessage replacing ActionErrors?" New topic

ActionMessage replacing ActionErrors?

Paul Duer
Ranch Hand

Joined: Oct 10, 2002
Posts: 98
One my co-workers tells me that in 1.1 it's more appopriate to use the ActionMessages class over the ActionErrors class.
Can somebody provide more information about this change, or where to find more details?
Eric Sexton
Ranch Hand

Joined: Sep 12, 2003
Posts: 133
ActionMessage is a super of ActionError. ActionMessage was added in 1.1 because the name ActionError implies that it shouldn't be used for general information or warning messages. So I guess that it makes you "feel" better using ActionMessage. The ActionMessage is used exactly like the ActionError except that it can represent a less severe message that needs to be displayed to the user. So it's only more appropriate.... if it's more appropriate!
wood burning stoves
subject: ActionMessage replacing ActionErrors?
Similar Threads
addActionError in struts2
ActionErrors (Struts)
Javascript and Struts validator
Error handling in struts
NullPointerException when validate="true" in action mapping