What is the use of ActionErrors in Struts
Answer / biru
In Validate method for each validation error we need to
construct an object of ActionMessage class and we need to
add each ActionMessage class object to ActionErrors class
object .
Ex:
public ActionErrors validate(ActionMapping
am,HttpServletRequest)
{
ActionErrors aes=new ActionErrors();
if(uname.length==0)
{ ActionMessage am1=new ActionMessage("uname.wrong")
aes.add("uname",am1);
}
}
Is This Answer Correct ? | 5 Yes | 0 No |
Who makes the struts?
How do I access token?
Are interceptors thread safe?
What is the purpose of @results?
Name some of the features of struts2?
What are the action classes in struts?
In which method of action class the business logic is executed?
What is package name in struts xml?
How an actionform bean is created?
what are the componenets of struts?
What is the default suffix for Struts2 action URI and how can we change it?
What is the flow of requests in struts based applications?