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 struts and springs in java?
Give an example of validates method used to avoid errors.
What are the applications of struts?
Is struts 1 still supported?
What is actioninvocation?
Do you need an alignment after replacing struts?
Mark the differences between html tags and strut specific html tags.
What are the classes used in struts?
How do you convert struts to springs?
shall we use any name for deployment descriptor of struts instead of struts-config.xml
What is struts2 framework?
What is the purpose of @createifnull annotation annotation?