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

587


What helpers in the form of jsp pages are provided in struts framework?

529


What is the different actions available in struts?

546


What are the benefits of Interceptors in Struts2?

655


What is the role of a handler in mvc based applications?

755






What is the purpose of @key?

585


What are disadvantages of Struts?

558


What do you mean by a custom tag?

547


Why aren’t the struts tags maintained as part of the jakarta taglibs project ?

552


Are interceptors thread safe?

574


How to use dispatchaction?

579


What is the difference between struts and spring?

527


What validate() and reset() method does ?

547


Give an example of validates method used to avoid errors.

508


Which configuration file is used for storing jsp configuration information in struts?

548