What is the use of ActionErrors in Struts?
Answers were Sorted based on User's Feedback
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 |
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 |
What is difference between interceptors and filters?
What is the use of execAndWait interceptor?
What is difference between actionform and dynaactionform?
What is the difference between forwardaction and includeaction?
What design patterns are used in struts?
What is xml based validation in struts2?
How can we display all validation errors to user on jsp page?
What is the purpose of @doublerangefieldvalidator?
What is the difference between session scope and request scope when saving formbean ?
What is front controller in struts2?
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
How can we upload files in Struts2 application?