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 are the main classes which are used in struts application?

0 Answers  


What is action servlet in struts?

0 Answers  


How are interceptors and servlet filters different?

0 Answers  


Are struts and shocks the same?

0 Answers  


Who wrote struts?

0 Answers  






List some struts tag libraries?

0 Answers  


Describe the basic steps used to create a tiles application?

0 Answers  


What is the procedure of operation of a form tag?

0 Answers  


What is the purpose of @conversionerrorfieldvalidator annotation?

0 Answers  


how to write uploadphoto in the insert update delete using struts? write code struts and jsp jdbc

1 Answers  


What is dispatchaction?

0 Answers  


What is interceptor in Struts2?

0 Answers  


Categories