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 flow of requests in struts based applications?

1 Answers  


Is it possible to create mulitple instance of one Action Class in struts?

10 Answers   Satyam,


What is the use of web xml in struts2?

1 Answers  


Explain about the process of functioning of the struts program?

1 Answers  


In which order struts framework searches for a message bundle?

1 Answers  


How you will enable front-end validation based on the xml in validation.xml?

1 Answers  


how can you switch onemodule to another module by switch action class plz explain with exapmle?

1 Answers   Atos Origin, HeadStrong, Satyam,


Which interceptor is responsible for i18n support?

1 Answers  


What are the different kinds of actions in struts?

1 Answers  


What are the life cycle methods of interceptor?

1 Answers  


Why should we go for struts framework?

5 Answers   Accenture,


What is an interceptor stack?

1 Answers  


Categories