This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Servlets and the fly likes wat is this MVC Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "wat is this MVC" Watch "wat is this MVC" New topic
Author

wat is this MVC

Ami Grover
Greenhorn

Joined: Mar 02, 2006
Posts: 5
hi everyone i m new in java , ijst join ur grp of javaranch
can anyone plz tell me smthng abt MVC
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56191
    
  13

Ami, please do everyone a favor and change your display name to used mixed case like everyone else.

thanks


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56191
    
  13

MVC, which stands for Model-View-Controller, is a pattern that applies "separation of concerns" to the various aspects of an application.

There has been a lot written about it, so your best bet is to google the term.

By the way, the pattern termed "Model 2" is an approximation of the MVC pattern as it applies to web applications.
Rajeev Ravindran
Ranch Hand

Joined: Aug 27, 2002
Posts: 455
Originally posted by AMI GROVER:
hi everyone i m new in java , ijst join ur grp of javaranch
can anyone plz tell me smthng abt MVC


Ami, it will be much easier to read if you write like this

hi everyone i m new in java , i just join your group of javaranch
can anyone please tell me something abt MVC

i have replaced
u with you
ur with your
smthng with something

welcome to javaranch and Njoy ( its enjoy )

Thanks,
Rajeev
[ March 02, 2006: Message edited by: Rajeev Ravindran ]

SCJP, SCWCD, SCBCD, Oracle Certified Professional (SQL n PL/SQL)
vjy chin
Ranch Hand

Joined: Feb 17, 2005
Posts: 279
Hi,
As the other pointed out, you can search for the term, you would get many articles.
You can start with web page.

Hope it helps.
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14672
    
  11

i have replaced
u with you
ur with your
smthng with something

You could have replaced 'abt' with 'about' too


[My Blog]
All roads lead to JavaRanch
ak pillai
author
Ranch Hand

Joined: Feb 11, 2006
Posts: 288
Welcome.

The MVC architecture divides the functionality of displaying and maintaining of the data to minimise the degree of coupling (i.e. promotes loose coupling) between components.

A Model represents the core business logic and state. A model commonly maps to data in the database and will also contain core business logic.

A View renders the contents of a model. A view accesses the data from the model and adds display logic to present the data.

A Controller acts as the glue between a model and a view. A controller delegates the request to the model for application logic and state and also centralises the logic for dispatching the request to the next view based on the input parameters from the client and the application state. A controller also decouples JSP pages and the Servlet by handling the view selection.


It is also used in SWING GUI as well.


java j2ee job interview questions with answers | Learn the core concepts and the key areas
Chetan Parekh
Ranch Hand

Joined: Sep 16, 2004
Posts: 3636
Hey Ami, Download sample application of MVC from here.


My blood is tested +ve for Java.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: wat is this MVC
 
Similar Threads
java
Design pattern question
WA #1.....word association
jtable
MVC - A PATTERN OR A FRAMEWORK?