ActionErrors and ActionMessages are same but in the struts-config.xml file if you are given the input in action tag and If action errors object is not empty it will goes to that input defined path.
But if your ActionMessages object is null or it contains the value it will goes to forwarded action only. ActionMessages are used to display the warnings
regards
Vinay Kumar Samudrala
Hyderabad
Above answer was rated as good by the following members: ylatha.java, batswon
RE: What is the difference between ActionErrors and ActionMessages
The difference between the classes is zero -- all behavior in ActionErrors was pushed up into ActionMessages and all behavior in ActionError was pushed up into ActionMessage. This was done in the attempt to clearly signal that these classes can be used to pass any kind of messages from the controller to the view -- errors being only one kind of message
RE: What is the difference between ActionErrors and Ac...
Hi Friends,
ActionErrors and ActionMessages are same but in the struts-config.xml file if you are given the input in action tag and If action errors object is not empty it will goes to that input defined path.
But if your ActionMessages object is null or it contains the value it will goes to forwarded action only. ActionMessages are used to display the warnings
RE: What is the difference between ActionErrors and Ac...
Action Message : Encapsulate the collection of message,these messgae are global, each message specified the perticular bean property, these are contain the key, whichis refer the resourse bundle in database.
Action Error :Â This is a return type of the validate(),contain the collection of error messages, these messgae are reported by the validate() of the Action form these message are global and represent the perticular bean property,
RE: What is the difference between ActionErrors and Ac...
The difference between ActionErrors and ActionMessage is not more except that ActionError is depricated. Firstly came struts had the ActionErrors, but that is the confusing because Error means only problem but while it revealed new version then gave the name is ActionMessage. In this we can give all the type of message like info message, warn message error message, fatal error message.Â