What is the difference between jsp model-1 and model-2 ?

Questions by basvoju

Showing Answers 1 - 3 of 3 Answers

Amit

  • Jul 18th, 2006
 

The Difference between MVC Model1 and Model 2 is

That in model 1 we code the business logic within the JSP , and directly access the DB within the JSP

Where as in model 2 we divide into 3portion Model, View, and Controller

Whole business logic is coded into Controller and as per the request the response is directed to a View

So in future is we have to make any change all the components are independent

 

We Do not use Model1 any more

Amit

 

  Was this answer useful?  Yes

gokulii

  • Jul 27th, 2006
 

In model1 there is no separation between the businesslogic and presentation logic, and so we can't reuse the view component.

but in model 2 there is a separation between businesslogic and presentation logic and so we can easily reuse the view component.

  Was this answer useful?  Yes

prasanna

  • Aug 1st, 2006
 

in jsp-model 1 while developing applicaitons in j sp model 1 archtecture the seperation of roles becomes a tedious issue and code is difficult to maintain like , the jsp developer has to wait for the java beans and the graphics designer would also be involved in desigining the page layouts.jsp model 2 gives us a lot of flexibility in which the model componets can be developed independently with the controller components development, this ensures the code to be manged efficiently so that it can with stand for many changes in the code with out touching the other part .

  Was this answer useful?  Yes

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