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 |
Give the details of xml files used in validator framework?
What do you know about validation plugin ?
How we can configured action mapping in struts?
What is the purpose of form-beans tag in struct-config.xml?
What is value stack?
What's mvc pattern ?
How can we integrate log4j in Struts2 application?
What is struts? Explain
What are the benefits of Struts framework?
Can we have multiple struts config files in a single web app?
If the framework doesn’t do what I want, can I request that a feature be added?
What are different Struts2 tags? How can we use them?