wood burning stoves*
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
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: 8904

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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: To Jayson
 
Similar Threads
Concurrent access on servlet instance variables...
ServletContexts
Object references in a clustered container
Session Variable problem in EJB
Why EJB 3, vs Hibernate, etc.