Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MVC architecture

 
Ravissant Markenday
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 502
Java jQuery Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ravissant Markenday
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Prabhu!!
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic