Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Servlets and the fly likes To Jayson Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "To Jayson" Watch "To Jayson" New topic
Author

To Jayson

Melody Siu
Greenhorn

Joined: Nov 06, 2003
Posts: 21
Hi, what is your opinion on...
having one servlet to delegate work for an application, or
each clickable (post/get) of each page goes directly to its dedicated servlet (i.e. many servlet, no concept of a controller)
Also, what is your strategy in terms of saving session information to its minimal...
Thanks,
Mel
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

Have a single controller for thw whole web app.


Groovy
Ko Ko Naing
Ranch Hand

Joined: Jun 08, 2002
Posts: 3178
This thread might be useful for u, Melody Siu... A lot of people talked about Front Controller there, which is the way u want for having one servlet to delegate work for an application...
http://www.coderanch.com/t/357783/Servlets/java/Asking-authors-patterns-Web-Tier


Co-author of SCMAD Exam Guide, Author of JMADPlus
SCJP1.2, CCNA, SCWCD1.4, SCBCD1.3, SCMAD1.0, SCJA1.0, SCJP6.0
 
Don't get me started about those stupid light bulbs.
 
subject: To Jayson