This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Servlets and the fly likes Servlet Config and ServletContext Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlet Config and ServletContext" Watch "Servlet Config and ServletContext" New topic
Author

Servlet Config and ServletContext

vikasids sharma
Ranch Hand

Joined: Aug 01, 2003
Posts: 157
hi all
1.where do we provide ServletConfig and ServletContext information for servlet and Application respectively?
2.what type of information is advisable to be placed in servletContext?
thanks
Vikas


Thanks
Vikas Sharma
SCJP(1.4)
Varun Khanna
Ranch Hand

Joined: May 30, 2002
Posts: 1400
I will encourage you to use the search facility provided in the forums.
This is one link among the many I found.
Hope this helps.


- Varun
danny liu
Ranch Hand

Joined: Jan 22, 2004
Posts: 185
1.where do we provide ServletConfig and ServletContext information for servlet and Application respectively?
ServletConfig is a wrapper for servlet configuration parameters
ServletContext is a wrapper for application-level info
2.what type of information is advisable to be placed in servletContext?
shared within the application, e.g., user count.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Servlet Config and ServletContext
 
Similar Threads
About ServletContext and ServletConfig
Getting file not found exception.
Diff between ServletConfig and ServletContext
ServletContext vs ServletConfig
about ServletContext and ServletConfig