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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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.
subject: Diff between ServletContext and servletConfig
Similar Threads
ServletContext Vs ServletConfig
Why Init() method
Where does ServletContect come in the hierarchy ?
ServletContext, ServletConfig and Pagecontext
servletConfig and servletContext