File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes A Basic Front Controller Example? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "A Basic Front Controller Example?" Watch "A Basic Front Controller Example?" New topic

A Basic Front Controller Example?

Johnny O'Boylan

Joined: Feb 07, 2002
Posts: 21
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!

==================================<br />If you choose not to decide,<br />you still have made a choice.<br />==================================
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
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

Joined: Sep 18, 2002
Posts: 28
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

Joined: May 10, 2000
Posts: 1913
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.
John Carnell
Ranch Hand

Joined: Sep 27, 2002
Posts: 71
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 ( 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.
John Carnell

John Carnell<br />Principal Architect<br /> <br />Netchange, LLC<br />1161 HillCrest Heights<br />Green Bay, WI 54313<br /> <br /><br /> <br /> <br />Author of <a href="" target="_blank" rel="nofollow">Pro Jakarta Struts, Second Edition</a>
I agree. Here's the link:
subject: A Basic Front Controller Example?
It's not a secret anymore!