HiWhat is the structure of MVC1?What is the structure of MVC2?Clearly i want to know jsp,servlets...which acts as view,controller,model in both

Showing Answers 1 - 6 of 6 Answers

Kapil Verma

  • Nov 5th, 2006
 

MVC1 i.e the model one architecture ,it is the architecture which uses only Servlet elements where servlet only acts both as the controller and view and model is Java Beans MVC2 is model2 arch. in which servlet is the controller and jsp as the view and Java-Beans as the Model.

  Was this answer useful?  Yes

kaleeswaran

  • Nov 14th, 2006
 

Hi,

In the Model I Architecture,JSP acts as the controller and model while Model II JSP represent the View and Servlet acts as the controller.

  Was this answer useful?  Yes

Pradeep

  • Dec 19th, 2006
 

Well, There is nothing called MVC 1.

We have MVC and MVC2 Architecture. MVC2 is synonymous with Struts Framework.

MVC -- Here Model is any POJO, View can be a JSP(Presentation) and Controller is the Servlet.

MVC2 -- Here we dont have any new technology apart from Servlets, JSP and POJO's.

We have an Action Servlet(Follows Front Controller Design Pattern) which acts as a Controller, the JSP's as usual act as the Presentation Layer i.e., the View part and for the Business Logic is the Model, which can be a POJO or Bean or EJB.

Strtus is a Framework, which compells the Developer to follow a certain Architecture and that is called MVC2.

  Was this answer useful?  Yes

nsaisri

  • Jan 23rd, 2007
 

Here is the correct explanation for MVC - Model 1Every request from client is sent to JSP page , JSP page is responsible for fulfilling the request.This includes authenticating the client,using javabean to access data and so forth , Servlets are not used in MVC Model1 architecture.In MVC model 2 , JSP for View , Servlets for controller , JavaBean for model.

  Was this answer useful?  Yes

Madhavi

  • May 29th, 2007
 

MVC1---------JSP acts as both VIEW and Controller
MVC2---------JSP acts as VIEW and Servlet acts as Controller

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions