wood burning stoves 2.0
The moose likes Java in General and the fly likes MVC architecture Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "MVC architecture" Watch "MVC architecture" New topic

MVC architecture

Ravissant Markenday
Ranch Hand

Joined: Nov 12, 2006
Posts: 47
Hi everyone!!

Could anyone please tell me what exactly is meant by a Model View Controller(MVC) architecture and how it can be implemented in a project??

Thanks in advance,

Ravissant Markenday
Prabhu Venkatachalam
Ranch Hand

Joined: Nov 16, 2005
Posts: 502

In J2EE, MVC means

Model - all business logic and database access code lies here.(EJB,DAO etc.,)

View - JSP's.(Data show to client)

Controller - Servlet.(which is entry point to the application)

Implementation example: Struts

Prabhu Venkatachalam<br />SCJP 1.4,SCWCD 1.4<br />prabhu.venkatachalam@gmail.com
Ravissant Markenday
Ranch Hand

Joined: Nov 12, 2006
Posts: 47
Thanks Prabhu!!
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
Here's a great Martin Fowler paper on GUI Architectures including MVC. It's good to understand where some of these came from and how they are adapted to Java. In particular be aware that a Java Swing app using MVC is nothing at all like a Java web app using so-called MVC-2.

A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
I agree. Here's the link: http://aspose.com/file-tools
subject: MVC architecture
It's not a secret anymore!