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

what is the use of cvs in struts?

2 Answers  


What is the struts in java?

0 Answers  


How data transfered from one formbean to another formbean?

4 Answers  


What are result types in struts?

0 Answers  


What does validation interceptor?

0 Answers  






What are the pros of struts 2?

0 Answers  


What is the flow of requests in struts based applications?

0 Answers  


What do you mean by inner class and anonymous class?

0 Answers  


Give an example where struts tiles may be used?

0 Answers  


what is struts? why Struts?

6 Answers   CTS, Infosys, TCS,


What is struts-default package and what are it’s benefits?

0 Answers  


What is struts and springs in java?

0 Answers  


Categories