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



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

Answer / 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

More Struts Interview Questions

What is the purpose of form-be tag in struct-config.xml?

0 Answers  


How can we handle exceptions thrown by application in Struts2?

0 Answers  


What are different ways to create Action classes in Struts2?

0 Answers  


why we are using vo,dao and dto design patterns in struts framework

3 Answers   Wipro,


How to override the default error message that can come during file uploading process?

0 Answers  






What is filter dispatcher in struts?

0 Answers  


How struts control data flow?

0 Answers  


What is the difference between session scope and request scope when saving formbean ?

0 Answers  


What is validate() and reset() functions?

0 Answers  


How you will make available any message resources definitions file to the struts framework environment?

0 Answers  


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

0 Answers  


Define struts?

0 Answers  


Categories