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

Explain about token feature in struts?

0 Answers   Tech Mahindra,


What is struts in java with example?

0 Answers  


What are inner class and anonymous class?

0 Answers  


What is the use of ActionErrors in Struts?

2 Answers   HCL, TCS,


In Struts Programming which is the controller,which is the model?

10 Answers  


Difference between struts and spring? Or why use spring, if you are already using struts?

0 Answers  


How client side validation is enabled on a jsp form?

0 Answers  


What are disadvantages of Struts?

0 Answers  


What is strut action mapping?

0 Answers  


What is the use of reset method of ActionForm class?

0 Answers  


we have two applications A1 & A2 both are accesing the same databse table employee at the same time how we will manage this so that both application can get the correct no of emloyee while A1 is inserting a employee at the same time while other applicatuion is getting the empployee list.

5 Answers   Accel, TCS,


What is struts2 in java?

0 Answers  


Categories