whats is mean Actionerrors and Actionerror?

Answer Posted / mahesh

In Struts, error messages are represented by creating
an object of type ActionError i.e.,

ActionError ae = new ActionError("errone");

To store multiple ActionError objects we use
ActionErrors object

ActionErrors aes = new ActinErrors();
aes.add("one",ae);

Is This Answer Correct ?    25 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What steps are required to for an application migration from Struts1 to Struts2?

781


How is a lookup dispatch action created?

728


How action-mapping tag is used for request forwarding in struts configuration file?

737


Is struts compatible with other java technologies?

686


How can we get Servlet API Request, Response, HttpSession etc Objects in action classes?

794






What is the use of jsonvalidation?

774


Which components are available using actioncontext map?

893


How we can controlled duplicate form submission in struts?

684


Why actionservlet is singleton in struts?

744


What is the purpose of @results annotation?

873


How duplicate form submission can be controlled in struts?

853


What is action class?

747


Why do we need struts?

688


What is the purpose of @key?

755


What is the difference between requestaware and servletrequestaware interface?

771