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 are the different kinds of actions in struts?
What do you mean by dynaactionform?
what is the struts internal code?
what is the main reason for developing struts? what is advantages over Basic MVC architecture based JAVA Application?
what is a RequestProcessor?
how can i fetch combo box value into my DAO using struts 2?
What is the default suffix for Struts2 action URI and how can we change it?
What is the use of Struts.xml configuration file?
Hi Friends, why struts introduced in to web application. Plz dont send any links . Need main reason for implementing struts. Thanks Prakash
What is defeult result type?
What are the classes used in struts?
What is the use of jsonvalidation in struts?