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

How many struts config file can be created in struts?

1 Answers  


What is the purpose of @before?

1 Answers  


What is struts framework in java?

1 Answers  


can we change the order of parameters in execute()?

4 Answers   Polaris, Serco,


What is struts actionmapping?

1 Answers  


What are the sections into which a strut configuration file can be divided?

1 Answers  


What is Request Dispatcher and What is reuest Processor??

2 Answers  


Difference between ActionErrors and ActionMessage?

1 Answers   iGate,


What is the use of reset method of ActionForm class?

1 Answers  


How to carryout the validations in struts if the validator frame work cant handle the validation

2 Answers   Syntel,


What is the difference between struts and spring? Explain

1 Answers  


When should we use SwtichAction?

1 Answers  


Categories