• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Pls, Reccomend good resource on Controller Servlet (MVC)

 
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Hi Pals, I am having problems getting a very good resource
on MVC(servlet,jsps and session Javabeans),especially different
ways of implementing a controller servlet, on the internet
or any good book.
Please, i need this for an on going project.
Help!!!
 
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I had the same problem a while back since it gets called MVC, model-view-controller, Model View Controller and a bunch of other things.
It also helps if you are aware that with servlets they call it "Model 2 Architecture", or "Servlet Centric"
A simple google search is here for you.
Dave
 
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
One excellent resource is the Apache Struts framework, which provides almost everything you need to write MVC applications. Another is my book (below) where I discuss the MVC pattern in depth and provide a sample implementation.
Kyle
------------------
Kyle Brown,
Author of Enterprise Java (tm) Programming with IBM Websphere
See my homepage at http://members.aol.com/kgb1001001 for other WebSphere information.
 
Sheriff
Posts: 6450
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I agree with what Kyle said regarding struts. I haven't had the opportunity to read his book yet, but another excellent exaample of using MVC and the Command Pattern (inlucding examples of a nice controller servlet) can be found in Web Development with JavaServer Pages by Fields and Kolb (Manning).
 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes Struts is good but is not the only MVC based application framework out there. It's still quite young and there are many improvements to be made to it.
You might like to have a look at Turbine too (http://jakarta.apache.org/turbine/index.html), also part of the Jakarta project. The Turbine people like to say their framework is Model 2 + 1!!!
If you're genuinely interested in MVC as well as other design patterns then obviously you have to buy probably the most popular computer science book of all time "Design Patterns" by Gamma et al (ISBN 0-201-63361-2)
Other than that, if you ask Google nicely, she will tell you the answers to the universe.
 
Kyle Brown
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Actually, the design patterns book (Gamma) doesn't cover MVC. To find out about the MVC pattern you would have to read Frank Buschmann's book "Pattern Oriented Software Architectures: A System of Patterns", which came out about the same time.
Or you could read my book
Kyle
------------------
Kyle Brown,
Author of Enterprise Java (tm) Programming with IBM Websphere
See my homepage at http://members.aol.com/kgb1001001 for other WebSphere information.
 
Gabriel Fox
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks guys for the hints.
I am rest assured i would end up with a standard webapp framework.
Cheers.
[This message has been edited by Gabriel Fox (edited October 25, 2001).]
 
Andre Moo
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Actually Kyle,
I hate to disagree with you since you are the author of a book and I am merely a little nobody without a job and without any prospects who hasn't even written a single Servlet but........
Page 4,5,6, Chapter 1 Design Patterns, Gamma et al talk about none other than MVC!!! It finishes the albeit brief introduction to MVC by saying which design patterns are used by MVC i.e Observer,Composite and Strategy which obviously are catalogued in more detail later in the book.
Yes, it might not be the best source of info on MVC in the context of Web Applications but the book itself is indispensible with regards to the concept of design patterns amongst other things which is primarily why I recommended it to the original poster
Oh, and before I forget, Advanced JavaServer Pages by David M. Geary (ISBN 0-13-030704-1) is also a good book which covers a Web Application framework for JSP/Servlets, specifically MVC based which is not too dissimilar to Apache Struts - this is hardly surprising since David M. Geary is one of the contributors to the Struts project!
 
Kyle Brown
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Andre,
Yes, yes, you're right. Mea Culpa. Gamma does briefly discuss MVC in the intro. What I meant is that it doesn't cover it as a Pattern. That's what Buschmann does...
Kyle
------------------
Kyle Brown,
Author of Enterprise Java (tm) Programming with IBM Websphere
See my homepage at http://members.aol.com/kgb1001001 for other WebSphere information.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic