why servlet is used as controller not JSP?

Answer Posted / zesan

Because when ever request is come then servlet is handle and
communicate to model and model process data and send back to
servlet . servlet those process data store into reositry area
then servlet can communicate to jsp and jsp response to
client . so every thing is done by servlet that is reason
servlet is used as controller.

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 core classes of struts?

568


What is the purpose of @requiredstringvalidator?

560


What are the steps involved in creating a strut application?

510


What are the benefits of Interceptors in Struts2?

646


What are result types in struts?

570






Why we use struts in java?

512


Which design pattern is implemented by Struts2 interceptors?

550


What are the 5 constants of action interface?

541


Why do we need struts?

542


Can you explain the directory structure for a struts folder in brief ?

518


Why do we use struts?

577


What is the default suffix for struts2 action uri ?

550


Why do we need mapdispatchtoprops?

473


Which interceptor is responsible for file upload support?

575


What’s the difference between struts and espresso?

500