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 difference between interceptors and filters?

0 Answers  


What is token used for?

0 Answers  


What is defeult result type?

0 Answers  


Are interceptors and filters different?

0 Answers  


What are the Core classes of Struts Framework?

0 Answers  






What is the difference between shocks and struts?

0 Answers  


How nested beans can be used in Struts applications?

0 Answers  


What is validate() and reset() functions?

0 Answers  


What is value stack?

0 Answers  


Can we have different controllers in one struts app?

7 Answers   Accenture,


How we can controlled duplicate form submission in struts?

0 Answers  


How many Action classes have been used in your project? Differences between struts 1.1 and 1.3?

0 Answers   Oracle,


Categories