aspose file tools*
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
Author

A Basic Front Controller Example?

Johnny O'Boylan
Greenhorn

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


==================================<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
Greenhorn

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
    
    6
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

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


John Carnell<br />Principal Architect<br /> <br />Netchange, LLC<br />1161 HillCrest Heights<br />Green Bay, WI 54313<br /> <br />john.carnell@netchange.us<br /> <br /> <br />Author of <a href="http://www.amazon.com/exec/obidos/ASIN/159059228X/ref=jranch-20" target="_blank" rel="nofollow">Pro Jakarta Struts, Second Edition</a>
 
Consider Paul's rocket mass heater.
 
subject: A Basic Front Controller Example?
 
Similar Threads
Patterns question
Design Pattern at Struts
Tomcat JSP URL Mapping
Struts selection
Using Servlet as a Dispatcher