What is the use of ActionErrors in Struts?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the two scope types for formbeans?

613


What are the steps involved in creating a strut application?

514


Why actionservlet is singleton in struts?

598


What is the life cycle of actionform?

556


What do you mean by the abstract package in struts2, and what is its utilization?

517






What is difference between struts1 and struts2?

508


What are the core classes of the struts framework?

517


What is use of i18n interceptor?

543


In struts, how can we access java beans and their properties?

562


Which class of struts is responsible to converts data types from string and vice versa?

667


How is the mvc design pattern used in struts framework?

520


Why it called struts?

561


Briefly tell the two kinds of form beans.

565


What is ValueStack and OGNL?

574


What is front controller in struts?

570