This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Servlets and the fly likes servlet config and servlet context Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "servlet config and servlet context" Watch "servlet config and servlet context" New topic
Author

servlet config and servlet context

sitaram irrinki
Ranch Hand

Joined: Feb 16, 2005
Posts: 158
How many servletconfig&servletcontexts are formed when ever 10-clients accessing one servlet program
stan ioffe
Greenhorn

Joined: Jun 30, 2005
Posts: 16
Every web application has exactly ONE instance of javax.servlet.ServletContext ... according to java's specification.

Each servlet has its own ServletConfig object. In other words, there is 1 ServletConfig object for each servlet. Think of ServletConfig as a wrapper around servlet's initialization parameters that are passed into the servlet for its instantiation.

-Stan
 
Have you checked out Aspose?
 
subject: servlet config and servlet context
 
It's not a secret anymore!