aspose file tools*
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 Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Diff between ServletContext and servletConfig" Watch "Diff between ServletContext and servletConfig" New topic
Author

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
MSanjeevMehra
Greenhorn

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

Wish U Happiness,<br />Sanjeev.
 
Consider Paul's rocket mass heater.
 
subject: Diff between ServletContext and servletConfig
 
Similar Threads
Why Init() method
servletConfig and servletContext
Where does ServletContect come in the hierarchy ?
ServletContext, ServletConfig and Pagecontext
ServletContext Vs ServletConfig