GeekInterview.com
Series: Subject: Topic:
Question: 3 of 43

MVC Design pattern

what is the difference between MVC1 and MVC2 in j2EE?
Asked by: ankurcse11 | Member Since Apr-2012 | Asked on: May 8th, 2012

View all questions by ankurcse11

Showing Answers 1 - 1 of 1 Answers
Sandhya.Kishan

Answered On : May 14th, 2012

View all answers by Sandhya.Kishan

1.MVC1 consists of Web browser accessing Web-tier JSP pages. The JSP pages access Web-tier JavaBeans that represent the application model, and the next view to display is determined by hyperlinks selected in the source document or by request parameters.
2.MVC1 is page-centric design, meaning any JSP page can either present in the JSP or may be called directly from the JSP page.
3.MVC1 Combines both presentation logic with the Business logic.
4.MVC1 we can have multiple controller servlets.

1.MVC2 introduces a controller servlet between the browser and the JSP pages. The controller centralizes the logic for dispatching requests to the next view based on the request URL, input parameters, and application state.
2.MVC2 removes the page-centric property by separating Presentation, Control logic and Application state.
3.MVC2 can have only one controller servlet .

  
Login to rate this answer.

Give your answer:

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

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.