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



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

Post New Answer

More Struts Interview Questions

Give the details of xml files used in validator framework?

0 Answers  


What do you know about validation plugin ?

0 Answers  


How we can configured action mapping in struts?

0 Answers  


What is the purpose of form-beans tag in struct-config.xml?

0 Answers  


What is value stack?

0 Answers  


What's mvc pattern ?

0 Answers  


How can we integrate log4j in Struts2 application?

0 Answers  


What is struts? Explain

0 Answers  


What are the benefits of Struts framework?

0 Answers  


Can we have multiple struts config files in a single web app?

0 Answers  


If the framework doesn’t do what I want, can I request that a feature be added?

0 Answers  


What are different Struts2 tags? How can we use them?

0 Answers  


Categories