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’s the difference between validation.xml and validator-rules.xml files in struts validation framework?

579


What is the purpose of @key annotation annotation?

590


how does request processor relates to action mapping?

484


Who makes the struts?

543


How does struts work?

544






Difference between html tags and struts specific html tags

505


What is the purpose of execute() method?

567


Can we handle exceptions in Struts programmatically?

513


What is the role of a handler in mvc based applications?

742


What is the purpose of action-mappings tag in struct-config.xml?

586


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

2530


What are Struts2 core components?

556


What is discontinuous strut?

490


What is the purpose of form-beans tag in struct-config.xml?

545


What are the two different types of validations that the validator framework supports?

521