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...

In struts how to use regurlar formbeans using validation
framework explain?

Answer Posted / santosh kumar

if u want to use validator plug-in in ur application
->u have to call the super class validate() from ur FormBean
class validate()

ex :
public ActionErrors validate(ActionMapping
map,HttpServletRequest req)
{
ActionErrors ers=super.validate(map,req);

----------------
----------------
}

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between plain-validator and field-validator?

962


What are the some useful annotations introduced in struts2?

976


Explain the difference between plain-validator and field-validator in struts?

954


What configuration changes are required to use resource files in Struts?

1031


What is role of actionservlet?

1030


Who wrote struts?

960


How client side validation is enabled on a jsp form?

1076


What do you mean by the abstract package in struts2, and what is its utilization?

944


Which interceptor is responsible for i18n support?

936


Which design pattern the interceptors in struts2 is based on?

924


When should we use SwtichAction?

1073


What is action class?

1031


How to work with error tags?

962


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

944


How can we display validation errors on jsp page?

1010