GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  J2EE
Go To First  |  Previous Question  |  Next Question 
 J2EE  |  Question 52 of 104    Print  
what is the difference between jsp model-1 and model-2 ?

  
Total Answers and Comments: 3 Last Update: August 01, 2006     Asked by: basvoju 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
July 18, 2006 18:02:51   #1  
Amit        

RE: what is the difference between jsp model-1 and mod...

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


 
Is this answer useful? Yes | No
July 27, 2006 08:18:22   #2  
gokulii Member Since: September 2005   Contribution: 1    

RE: what is the difference between jsp model-1 and mod...

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.


 
Is this answer useful? Yes | No
August 01, 2006 07:20:49   #3  
prasanna        

RE: what is the difference between jsp model-1 and mod...
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 .
 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape