GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  J2EE  >  Servlets
Go To First  |  Previous Question  |  Next Question 
 Servlets  |  Question 140 of 170    Print  
What is the difference between mvc and mvc2 architecture?
I m confuse.


  
Total Answers and Comments: 2 Last Update: March 04, 2008     Asked by: Chandra Kumar 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
June 12, 2007 09:13:24   
akantilal Member Since: June 2007   Contribution: 15    

RE: What is the difference between mvc and mvc2 archit...
MVC1 architecture is the one where the controller & view logic are combined in a single unit and the model is a separate unit. This was the case with early JSP based applications where JSP would include the controller logic pull the data from the model and present it to the user.

MVC2 architecture is one where all these 3 pieces are separate units. The controller receives the client requests pulls the data from the model stores it in some shared scope for use by the view (JSP) then redirects to the appropriate view for presentation to the user. In general all your JSP Pages do is displaying data stored in shared session and.or application scopes which is populated by some servlet then you are following the MVC2 architecture. One of the examples for this is the Struts framework.

 
Is this answer useful? Yes | No
March 04, 2008 03:00:38   
sampra Member Since: February 2008   Contribution: 278    

RE: What is the difference between mvc and mvc2 architecture?
in the mvc 1 all the view model and presention were keept at only one place but in mvc 2all thse thingshas putted together
 
Is this answer useful? Yes | No

 Related Questions

GenericServlet is for servlets that might not use HTTP, like for instance FTP service.As of only Http is implemented completely in HttpServlet. The GenericServlet has a service() method that gets called 
Latest Answer : HttpServlet is a specific case/implementation of GenericServlet.Thanks,Vinay ...

Both are interfaces. The servlet engine implements the ServletConfig interface in order to pass configuration information to a servlet. The server passes an object that implements the ServletConfig interface 
Latest Answer : ServletContext and ServletConfig are the interfaces provided by java class in servlet API.The vendors of web containers(WC) provides the classes implementing these interfaces.It is the responsiblity of web container(WC) to create ServletContext and ServletConfig ...

Servlets are to servers. Applets are to browsers. Unlike applets, however, servlets have no graphical user interface. 
Latest Answer : Applets do not have main() method... ...

Answered by Scott on 2005-05-12 10:39:32: A servlet that implements SingleThreadModel means that for every request, a single servlet instance is created. This is not a very scalable solution as most web 
Latest Answer : Hi,As the name says Singlethread means only one thread, can access the service method of the servlet, to reduce the overhead the servlet container creates pool of servlet instances to handle n number of request that is depend on the servler configurationthankschandra ...

Latest Answer : SevletConfig is used to give the information during the initializing period.ServletContext is  used for thye communication between the servlet and the servletcontainer thatis to give MIME types.ServletContext is used to access other environments thatis ...

What is difference between sendRedirect() and forward()..? Which one is faster then other and which works on server?

Latest Answer : Both JSP and Servlets provide dynamic content features. Its difficult to point out the difference as a JSP is ultimately converted into a Servlet and run on Server. Basically, its the separation of roles played by JSP and Servlet which is important. In ...

I don t KNOW 
Latest Answer : Applet is a program that resides on Internet server and can be downloaded from Internet and automatically installed on client machine , runs as a part of a web document or web page.So that means applet also controlled by a server called Internt ...
Read Answers (23) | Asked by : Nilesh

give me the answer 
Latest Answer : Generic servlets extend javax.servlet.GenericServlet. Generic servlets are protocol independent, meaning that they contain no inherent support for HTTP or any other transport protocol. HTTP servlets extend javax.servlet.HttpServlet. These servlets ...

Latest Answer : Platform and Server IndependenceJSP technology adheres to the Write Once, Run AnywhereTM philosophy of the JavaTM architecture. Instead of being tied to a single platform or vendor, JSP technology can run on any Web server and is supported by a wide variety ...
Read Answers (2) | Asked by : Devika Bhatt


 Sponsored Links

 
Related Articles

N-Tier Architecture: Data Access Layer

N Tier Architecture Data Access Layer In an N Tier architecture the data access layer consists of components that aid one in the process of accessing the database When it is used correctly the data access layer serves as an abstract level for the structures of the database Simple changes that are ma
 

N-Tier Architecture: The Business Rules Layer

N Tier Architecture The Business Rules Layer Business Rules Layer in N Tier Architectures The Business Rules Layer in an N Tier architecture is that layer that contains the Business logic and or Business rules of the application Reserving a separate layer strictly for Business logic in an N Tier arc
 

N-Tier Architecture Presentation Logic Layer

N Tier Architecture Presentation Logic Layer Composition of the Presentation Layer The Presentation Layer in an N Tier structure is commonly referred to as the client” layer It consists of parts that are used to present data to an end user Examples of components on the Presentation Layer
 

SOA and Business Architecture

SOA and Business Architecture Businesses are now having to think a lot more seriously about how to best assemble their systems out of common parts Service Oriented Architecture has caused this change in the way such systems are thought of It requires a lot more planning and investment at the outset
 

SOA and Network Management Architecture

SOA and Network Management Architecture In recent years the field of Network Management has been absorbing the principles of Service Oriented Architecture Examples of service oriented Network Management architectures include the TS 188 001 NGN Management OSS Architecture from ETSA as well as the mor
 

SOA Architecture

SOA Architecture It is essential for the Businesses to think a lot more seriously about how best to assemble their systems out of common parts It requires a lot more planning and investment at the outset but it also enables Businesses to build faster systems in the long run as the inventory of reusa
 

N-Tier Client-Server Architecture

N Tier Client Server Architecture Description of 1 Tier and 2 Tier Web Applications This article will discuss the various architectures of Client Server environments Perhaps the most influential Client Server environment is the Internet and its global users With the increasing use of web application
 

Peer-to-Peer and Client-Queue-Client Architecture

Peer to Peer and Client Queue Client Architecture Client Server Architecture Compared with Peer to Peer and Client Queue Client Architecture Client Server Architecture Client Server Architecture which is the model for Internet communication separates client programs machines from server programs mac
 

What is Common Data Architecture

Business need to define their organizational rules, policies and process in order to realize their projected growth within a specified period. In order to realize these targets, the essentially need to have a basic framework as the guide in their operations. The gathering and use of data is a very s
 

What is Data Architecture

Data Architecture basically deals with designing and constructing data resource. Data Architecture provides methods to design, construct and implement a fully integrated, business-driven data resource that include real world objects and events, onto appropriate operating environments. Data Architect
 

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

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

Page copy protected against web site content infringement by Copyscape