File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes MVC Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "MVC" Watch "MVC" New topic
Author

MVC

Jean Rodrigues
Greenhorn

Joined: Apr 30, 2003
Posts: 6
Hi, guys.
Well I've been in a discussion recently about MVC:
- I believe MVC architecture composes the presentation tier, correct?
- People are telling me MVC is composed of 3 tiers: Model - View - Controller. I think that's wrong. MVC is a whole architecture for the presentation layer.(Correct me if I'm wrong). I believe Model - View - Controller are just patterns that compose the whole architecture, not a layer itself.
- And therefore, MVC is just one tier.
What can you say about this?
Thanks in advance.


Jean Rodrigues<br />SCJP / SCWCD / SCBCD / SCEA I / SCJD (Finishing)
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24166
    
  30

Model, View, and Controller are concepts which you can use to explain a software architecture.
In the classic Smalltalk implementation, each concept is an object.
In Swing, for eaxh widget the View and Controller are smooshed together into one clump of objects, and the Model is another object.
But it's not incorrect for me to talk about a classic 3-tiered architecture seeing the database as the Model, the middle tier as the Controller, and the GUI as the View. Now, in this case, the View is actually a complex thing which itself contains a separate Controller and View, and uses the lower tiers as a Model.
But as I said, these things are just explanatory concepts, and you use them whenever they make sense.


[Jess in Action][AskingGoodQuestions]
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
I believe that MVC are only one tier!
[ October 02, 2003: Message edited by: Dalton Milkvicz ]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: MVC
 
Similar Threads
MVC
How Spring and Hibernate pair up?
Guidance in choosing a pattern
Business Tier + Persistence Tier
Business Delegate/Session Facade Question