Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

A Basic Front Controller Example?

 
Johnny O'Boylan
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I am Looking to find a Basic MVC Front Controller example to be used as a learning tool. Can anyone point me in the right direction?
Thank you in advance!
 
Chris Mathews
Ranch Hand
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I definitely recommend that you check out Core J2EE Patterns ISBN: 0130648841. I also think this week's book: J2EE Design Patterns Applied ISBN: 1861005288 would be a good choice.
There I left the door wide open for you John .
 
M.C. Horn
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The book I learned from, and still refer to from time to time is entitled Advanced JavaServerPages by David Geary. Now days a lot of folks are just utilizing the Struts framework, well Mr. Geary had at least a fair share of input to that project (at least I think so), and this book takes you through the steps of developing your own framework, and the sample code is really good if you download it from the book's sight. This book has been out for a while, but a good one to take a look at.
 
Simon Brown
sharp shooter, and author
Ranch Hand
Posts: 1913
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And if you're after something for free, check out Chapter 12 : Designing Web Applications and Servlet Patterns (from Professional Java Servlets 2.3).
Also, definitely check out the patterns books for a much wider look at how MVC fits into the grand scheme of J2EE.
Regards
Simon
 
John Carnell
Author
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Chapter 2 of the J2EE Design Patterns Applied (ISBN: 1861005288) book covers the front-controller pattern and provides a front-controller implementation in Java.
If you want to see a full-blown Model-View-Controller implementation, I suggest you download the Struts Development Frameworks Src code (http://jakarta.apache.org/struts). Struts has very elegant MVC implementation. Between the J2EE Design Patterns Applied book and the Struts source code, you can get an excellent overview of implementing your own front-controller pattern.
Thanks,
John Carnell
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic