What is the use of ActionErrors in Struts?

Answers were Sorted based on User's Feedback



What is the use of ActionErrors in Struts?..

Answer / surajkumar.java

ActionErrors is a class(org.apache.struts.action.ActionErrors)
which encapsulates the error messages being reported by the
validate() method of an ActionForm. Validation errors are
either global to the entire ActionForm bean or they are
specific to a particular ActionForm bean property. Each
individual error is described by an "ActionError" object,
which contains a message key which are mentioned in
"Application.properties" file.

Is This Answer Correct ?    22 Yes 1 No

What is the use of ActionErrors in Struts?..

Answer / neha

to correct last line in above - individual error is
described by a 'ActionMessage' object having a message key.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Struts Interview Questions

What is package name in struts xml?

0 Answers  


What is xml based validation in struts2?

0 Answers  


What are action errors and error and what are the consequences they impose?

0 Answers  


What are the struts2 configuration properties that control file uploading process?

0 Answers  


how handle when client send multiple request at atime for multiple servlets servlets?

3 Answers   IBM,


Do I have to credit struts on my own website?

0 Answers  


life cycle of struts?

14 Answers   HCL, iGate, Scope International,


How do you customize ActionServlet?

3 Answers   Ness Technologies,


What are the 5 constants of action interface?

0 Answers  


How we can configured action mapping in struts?

0 Answers  


What is the use of form bean in struts?

0 Answers  


Which design pattern is implemented by Struts2 interceptors?

0 Answers  


Categories