File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Diff between ServletContext and servletConfig Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Diff between ServletContext and servletConfig" Watch "Diff between ServletContext and servletConfig" New topic

Diff between ServletContext and servletConfig

Raj Jindal
Ranch Hand

Joined: Jan 17, 2003
Posts: 50
what is the difference between servletContext and servletConfig.
deepak kukreja
Ranch Hand

Joined: Aug 13, 2001
Posts: 54
ServletContext provides the window to access the environment around the Servlet,
Whereas ServletConfig is about the configuration of a particular Servlet as specified in the deployment descriptor.

Deepak<br />SCJP

Joined: Sep 18, 2003
Posts: 17
servletconfig helps to handle servlet.
servletContext helps to handle web application.
[ September 24, 2003: Message edited by: MSanjeevMehra ]

Wish U Happiness,<br />Sanjeev.
I agree. Here's the link:
subject: Diff between ServletContext and servletConfig
jQuery in Action, 3rd edition