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 struts and springs in java?

0 Answers  


Give an example of validates method used to avoid errors.

0 Answers  


What are the applications of struts?

0 Answers  


Is struts 1 still supported?

0 Answers  


What is actioninvocation?

0 Answers  


Do you need an alignment after replacing struts?

0 Answers  


Mark the differences between html tags and strut specific html tags.

0 Answers  


What are the classes used in struts?

0 Answers  


How do you convert struts to springs?

0 Answers  


shall we use any name for deployment descriptor of struts instead of struts-config.xml

3 Answers   Polaris,


What is struts2 framework?

0 Answers  


What is the purpose of @createifnull annotation annotation?

0 Answers  


Categories