why servlet is used as controller not JSP?

Answer Posted / javasheavenforu

JSP can be used as controller because it is converted into
servlet ultimately.But this is a violation of MVC pattern.
If you want to follow the pattern then you need to seperate
your presentation part and controller part.

Is This Answer Correct ?    31 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does Struts2 action and interceptors are thread safe?

599


What is the difference in using Action interface and ActionSupport class for our action classes, which one you would prefer?

559


Which technologies can be used at view layer in struts?

642


Explain how to work with error tags?

583


What is the difference between requestaware and servletrequestaware interface?

573






Give an example of validates method used to avoid errors.

497


What is the purpose of @urlvalidator annotation?

551


What does the term struts mean?

549


Why was reload removed from struts (since 1.1)?

540


What is struts? Explain

538


What is container struts2?

519


What steps are required to for an application migration from Struts1 to Struts2?

604


When should we use SwtichAction?

591


What is the purpose of '@keyproperty'?

569


Where should struts xml be placed?

496