its a ActionForm controller or model?

Answer Posted / mohan

According to MVC2 rules, it is the responsibility of ActionServlet to do form validation but since its built-in servlet, we cant place validation logic in ActionServlet class, so we use ActionForm to do validation.......So ActionForm acts as a controller not model....

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the life cycle methods of interceptor?

522


What is struts2 namespace?

514


Describe validate() and reset() methods.

608


In how many ways duplicate form submission can occurs?

569


What is the difference between filters and interceptors ?

502






What is the purpose of @result?

585


Name the different types of actions found in struts.

562


What are the steps required for setting up validator framework in struts?

567


Which class is the Front Controller in Struts2?

551


What is struts framework in java?

535


What is the forward action utilized for?

556


how to develop the submit and search operations in single jsp using struts?

2560


What is struts xml?

444


What is struts validator framework?

552


What are result types in struts?

578