Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is the use of ActionErrors in Struts

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is value stack?

1099


Why it called struts?

1016


What are action errors and error?

1083


Explain architecture of struts2?

1159


Explain about struts dispatch action?

1041


What are the contents on web.xml in struts application ?

1037


In which method of action class the business logic is executed?

1031


How we can install struts?

1059


What is actioninvocation in struts2?

1063


Briefly tell the two kinds of form beans.

1026


What’s the difference between validation.xml and validator-rules.xml files in struts validation framework?

1081


What is filter dispatcher in struts?

951


What are apache struts?

975


How are interceptors and servlet filters different?

1046


how to develop the submit and search operations in single jsp using struts?

3058