File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 Spring in Action this week in the Spring 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Diff between ServletContext and servletConfig