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 controller in struts ?

0 Answers  


What is Hibernate?

4 Answers  


where you store password in banking project

1 Answers  


What is pojo in struts2?

0 Answers  


struts is thread safe or not ?give me answer as early as possible

5 Answers  


How is token generated?

0 Answers  


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

0 Answers  


what is the purpose of load_on_startup entry in struts- config.xml?

8 Answers   Satyam,


what is the difference between SAX Parser and DOM Parser??

14 Answers   Cap Gemini, Goldman Sachs, HCL, Hidden Brains, HP,


what is struts? why Struts?

6 Answers   CTS, Infosys, TCS,


What is the DynaActionForm? How we implement the dynaactionform ? can u please tell me the way to implement? in understandable way?

8 Answers   JBA Infotech,


Difference between struts and spring? Or why use spring, if you are already using struts?

0 Answers  


Categories