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 |
how can u handle run time exceptions in struts and jsp plz explain briefly not single word answer?
Briefly tell the two kinds of form beans.
Explain about the library tag?
What do you mean by actionservlet?
What are the features of struts 2?
What are the benefits of Struts framework?
What is the use of ActionErrors in Struts?
What is actionmapping?
Explain the difference between plain-validator and field-validator in struts?
Mark the differences between html tags and strut specific html tags.
What is the forward action utilized for?
What is the purpose of @emailvalidator annotation?