aspose file tools
The moose likes Struts and the fly likes ActionMessage replacing ActionErrors? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Reply 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://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: ActionMessage replacing ActionErrors?
 
Similar Threads
ActionErrors (Struts)
NullPointerException when validate="true" in action mapping
Error handling in struts
addActionError in struts2
Javascript and Struts validator