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 are the two different types of validations that the validator framework supports?

0 Answers  


Are struts and shocks the same?

0 Answers  


What is the default suffix for Struts2 action URI and how can we change it?

0 Answers  


Explain the components of struts?

0 Answers  


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

0 Answers  


What is the purpose of global-forwards tag in struct-config.xml?

0 Answers  


What is ValueStack and OGNL?

0 Answers  


Explain about the validation steps which have to be carried during validation of client-side address?

0 Answers  


What is struts 2 framework in java?

0 Answers  


What is the purpose of '@keyproperty'?

0 Answers  


What are the Core classes of Struts Framework?

0 Answers  


Please can you tell me ,where can we used the MVC other than web applications.

1 Answers  


Categories