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 the use of execAndWait interceptor?

0 Answers  


What is difference between actionform and dynaactionform?

0 Answers  


What is the difference between forwardaction and includeaction?

0 Answers  


What design patterns are used in struts?

0 Answers  






What is xml based validation in struts2?

0 Answers  


How can we display all validation errors to user on jsp page?

0 Answers  


What is the purpose of @doublerangefieldvalidator?

0 Answers  


What is the difference between session scope and request scope when saving formbean ?

0 Answers  


What is front controller in struts2?

0 Answers  


I have 4 jsp pages .At last page we have a submit button when we click it it will store all jsps data which we provide will store into database. how we can make it possible

1 Answers   MNC,


How can we upload files in Struts2 application?

0 Answers  


Categories