jQuery in Action, 3rd edition
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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 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!
I agree. Here's the link: http://aspose.com/file-tools
subject: ActionMessage replacing ActionErrors?
It's not a secret anymore!