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 controller in struts ?
What is Hibernate?
where you store password in banking project
What is pojo in struts2?
struts is thread safe or not ?give me answer as early as possible
How is token generated?
In which method of action class the business logic is executed?
what is the purpose of load_on_startup entry in struts- config.xml?
what is the difference between SAX Parser and DOM Parser??
14 Answers Cap Gemini, Goldman Sachs, HCL, Hidden Brains, HP,
what is struts? why Struts?
What is the DynaActionForm? How we implement the dynaactionform ? can u please tell me the way to implement? in understandable way?
Difference between struts and spring? Or why use spring, if you are already using struts?