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 an interceptor stack?
while working struts in intellij 7.0error unable to initialize tld location cache: zip file is closed is displayed anybdy can answer me immdialy .ungert
What are different ways to create Action classes in Struts2?
What are the various struts tag libraries?
How is a lookup dispatch action created?
How do you create message resource?
Explain how to work with error tags?
kindly can any one post for me portlet,hibernate,spring example code and configuration,and some related tutorials plz its urgent for me....thanks in advance ............
When wil use singleton class in Struts
What is the purpose of @beforeresult?
how to write uploadphoto in the insert update delete using struts? write code struts and jsp jdbc
What validate() and reset() method does ?