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 construction struts?

521


What is the differences between struts1 and struts2?

537


What are the advantages of spring mvc over struts mvc?

505


Which interceptor is responsible for file upload support?

587


What is lookupdispatchaction?

561






What is struts and why it is used?

509


What do you mean by inner class and anonymous class?

601


What is actioncontext?

559


What is the default location of result pages and how can we change it?

562


What is switchaction?

666


Explain the difference between plain-validator and field-validator in struts?

532


How is a lookup dispatch action created?

540


Name the different types of actions found in struts.

568


What does validation interceptor?

553


How can we write our own interceptor and map it for action?

579