Meaningless Drivel is fun!*
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "ActionMessage replacing ActionErrors?" Watch "ActionMessage replacing ActionErrors?" New topic
Author

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?
 
Similar Threads
addActionError in struts2
ActionErrors (Struts)
Javascript and Struts validator
Error handling in struts
NullPointerException when validate="true" in action mapping