Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
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
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!
jQuery in Action, 2nd edition
subject: ActionMessage replacing ActionErrors?