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

Explain about the process of functioning of the struts program?

976


Why are frameworks used?

940


Explain about token feature in struts?

924


What is the actionform?

974


How can we get Servlet API Request, Response, HttpSession etc Objects in action classes?

1013


What is role of actionservlet?

969


How an actionform bean is created?

911


Difference between html tags and struts specific html tags

857


How the exceptions are handled in struts?

932


What are the classes used as part of struts framework ?

902


Explain how can we upload files in struts2 application?

1001


What are the benefits of Struts framework?

952


Is struts efficient?

869


What are the ways in which duplicate form submission can occur?

880


What’s the difference between struts and espresso?

915