GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Interview Questions  >  J2EE  >  Struts
Go To First  |  Previous Question  |  Next Question 
 Struts  |  Question 8 of 102    Print  
What is the difference between ActionErrors and ActionMessages

  
Total Answers and Comments: 13 Last Update: November 12, 2007   
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: Vinay Kumar Samudrala
 

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

regards

Vinay Kumar Samudrala

Hyderabad

 



Above answer was rated as good by the following members:
ylatha.java, batswon
  Sorting Options  
  Page 1 of 2   « First    1    2    >     Last »  
March 22, 2005 07:16:51   #1  
Sundar        

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
 
Is this answer useful? Yes | No
October 04, 2005 04:19:56   #2  
Vinay Kumar Samudrala        

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

regards

Vinay Kumar Samudrala

Hyderabad

 


 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
April 26, 2006 07:53:29   #3  
bangaram        

RE: What is the difference between ActionErrors and Ac...
ActionMessages is the super class of ActionErrors.
 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
August 04, 2006 04:36:50   #4  
siva kumar reddy        

RE: What is the difference between ActionErrors and Ac...

 in struts 1.0  to dispaly the errors, ActionError was used but struts1.1 that feature depricated by ActionMessage tag.

it will be generated like

  <ul>

         <li>

          </li>

  </ul>

 main advantage of ActionMmessage tag is it does not force to write html tags in properties file .but ActionError object forces to write html tags.

cheers

siva


 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
April 20, 2007 01:18:41   #5  
vijayaraja        

RE: What is the difference between ActionErrors and Ac...
Its a superset of ActionErrors
 
Is this answer useful? Yes | No
April 22, 2007 07:41:29   #6  
kamala        

RE: What is the difference between ActionErrors and Ac...
There is no difference between action errors and action Messages both working for same usage that is displaying error messages to the client
 
Is this answer useful? Yes | NoAnswer is useful 0   Answer is not useful 1Overall Rating: -1    
May 31, 2007 00:51:48   #7  
sasikumar`        

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,

 
Is this answer useful? Yes | No
July 13, 2007 03:18:08   #8  
kuldeep kaushik        

RE: What is the difference between ActionErrors and Ac...
The ActionErrors object is basically a collection class for storing org.apache.struts.action.ActionMessage instances.
 
Is this answer useful? Yes | No
August 03, 2007 05:29:20   #9  
charuta        

RE: What is the difference between ActionErrors and Ac...
The difference between Struts 1.1 and Struts 1.2 is Deprecation of ActionError class. (Use ActionMessage instead)
 
Is this answer useful? Yes | No
September 01, 2007 06:25:08   #10  
jameel khan        

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. 
 
Is this answer useful? Yes | No
  Page 1 of 2   « First    1    2    >     Last »  


 
Go To Top


 Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape