Thursday, October 9, 2014

JSP MODEL 2 ARCHITECTURE



* What is the model 2 architecture ?

   - Model 2 architecture is an  approach used for developing web application.This architecture separate presentation logic from business logic.Beside this,Model 2 also have an additional component called controller.

   - In jsp,servlet acts as controller.The responsibility of controller is to process incoming request and instantiate a model-java object or bean to compute a business logic.It is also responsible for deciding to which jsp page the request should be forward.In other word,servlet  select suitable business logic(model) to process request.It also redirect the result to appropriate view.

* What is the purpose of model  2 architecture ?
   - The main purpose of model 2 architecture is to separate presentation logic from business logic.The components of model 2 architecture are as follows:
      + View.
      + Model.
      + Controller.



No comments:

Post a Comment