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

What is the purpose of @beforeresult annotation?

0 Answers  


explain the Struts flow?

4 Answers   Wipro,


How data transfered from one formbean to another formbean?

4 Answers  


What is the purpose of @createifnull annotation annotation?

0 Answers  


What is the purpose of dispatcher result type?

0 Answers  


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

0 Answers  


What is discontinuous strut?

0 Answers  


I have 4 jsp pages .At last page we have a submit button when we click it it will store all jsps data which we provide will store into database. how we can make it possible

1 Answers   MNC,


what is the struts internal code?

1 Answers   Wipro,


What is the difference between filters and interceptors ?

0 Answers  


Can you explain struts.properties in struts2?

0 Answers  


how you implement and maintain your struts project by using MVC2 arch?

2 Answers   Patni, Wipro,


Categories