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 |
What is the purpose of @beforeresult annotation?
explain the Struts flow?
How data transfered from one formbean to another formbean?
What is the purpose of @createifnull annotation annotation?
What is the purpose of dispatcher result type?
What are the ways in which duplicate form submission can occur?
What is discontinuous strut?
I have 4 jsp pages .At last page we have a submit button when we click it it will store all jsps data which we provide will store into database. how we can make it possible
what is the struts internal code?
What is the difference between filters and interceptors ?
Can you explain struts.properties in struts2?
how you implement and maintain your struts project by using MVC2 arch?