[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 169
  • Last Modified:

Looking for information about Model View Controller

Hi,

I am looking for information about the different possible implementations of Model View Controller (MVC) in java with the advantages and disadvantages about the implementation

All kinds of info is welcome, books, webpages, .....


0
jcasteel
Asked:
jcasteel
1 Solution
 
iarlaCommented:
0
 
s_franklinCommented:
MVC splits responsibility of your application into three layers:

* Presentation of data
* The data itself
* Manipulation of the data

This abstraction arose first (to my knowledge) as a formal design pattern in Smalltalk and fits very nicely within the Smalltalk paradigm. However, you can borrow from it your own development.

You will find a very brief discussion of MVC in the Design Patterns book by Gamma et al. Even though the discussion of MVC is light, it really is an excellent book to find all sorts of valuable design patterns discussed in good detail. You can find this at:

http://www.amazon.com/exec/obidos/ASIN/0201633612/o/qid=949516806/sr=8-1/104-7409923-9822848

By decoupling your view, your controller and your data, you give yourself a much better chance at reuse. If you decide to strip out your view in lieue of a new one, the impact on your software will be reduced with MVC over unplanned or inadequate design strategies.

You can also provide multiple look-and-feels to your app by partitioning your application in this way. MVC and/or factory design patterns give you a better chance at supporting multiple GUI toolkits, platforms etc.

By purposefully designing your application in this way, you will probably get a much cleaner design - frequently GUI apps become quickly bloated in the wrong areas. GUI classes quickly get loaded up with all sorts of behavior that they really shouldn't know about.

MVC is used in one flavor or another all the time - another example is JSP, servlets and a back-end data model.

The page above is a good introduction but for meatier discussions:

Twist on MVC (MVP):
http://www.ibm.com/java/education/mvp.html

MVC Overview:
http://www.fourbit.com/products/fab/papers/fab_mvc_clients.html

MVC & Java/Swing:
http://www.javaworld.com/javaworld/jw-04-1998/jw-04-howto.html

MVC & Java/Swing (II):
http://web2.java.sun.com/products/jfc/tsc/articles/getting_started/getting_started2.html

Swing/JFC FAQ:
http://users.vnet.net/wwake/swing/faq.html (question 1.9)

Steve
0
 
s_franklinCommented:
There is an excellent interactive evaluation of the Blueprint Framework - basically a tool for capturing design patterns in UML that auto-generate code skeletons for various design patterns. It is definitely worth a look, at the very least to see how they have represented the core library of design patterns (including MVC) and to see how they translate this content into a Java skeleton:

Blueprint Technologies:
http://www.blueprint-technologies.com/
(the demo I'm thinking of requires Rational Rose which also has an evaluation copy, but there may be other tools available for your review).

Steve
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
jcasteelAuthor Commented:
Sorry,

There where some intresting http addresses inside but I already have read part of the information before.

So for me it does not answer the whole question.

But I will make a question for 75 points for you so you get your points for that part
0
 
s_franklinCommented:
Could you add more detail about your question?

Steve
0
 
jcasteelAuthor Commented:
More info about the different possible implementations like what if you want to nest MVC's in MVC's . Do you start from the controller, Model of view if you build the MVC.

I did read the book of the gang of four different times and some other stuff and we did different kind of implementations of MVC but we want to decide the way to go ... but ... Maybe different meaning of different people and a discussion will give us the right answer.

greets

Jan
0
 
yuvalgCommented:
Check www.codeguru.com,
They have an online book called "Thinking in Java" which have a "design patters".

goodluck,
yuval.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now