This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "MVC architecture" Watch "MVC architecture" New topic
Author

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,

Regards,
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
 
Consider Paul's rocket mass heater.
 
subject: MVC architecture
 
Similar Threads
can JSP be used as controller in MVC
diff b/w threetier and mvc
mvc architecture
Handling HttpSession
JSP as controllor in MVC