Online Training Spring Hibernate Training in Delhi R Programming Training Course Big Data and Hadoop Training Java Training

ServletContext

ServletContext is an interface that is defined in the javax.servlet package.

Ads

ServletContext

     

ServletContext is an interface that is defined in the javax.servlet package. It describes a set of methods for communicating with the servlet container. For example, dispatch requests, to get the MIME type of a file, or write to a log file.

Each web application has only one ServletContext, which is accessible to all the active resources of that application. The ServletContext can also be used by the servlets to share the data with one to another.

A Servlet can access raw input streams to Web Application resources, virtual directory translation, a common mechanism for logging information, and an application scope for binding objects through the ServletContext interface. It is created by the container when the web application is deployed and after that only the context is available to each servlet in the web application.

Read more at:

http:/www.roseindia.net/servlets/ServletContext.shtml

Advertisements

Ads
Share on Google+Share on Google+

ServletContext

Posted on: November 17, 2009 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Advertisements

 

Discuss: ServletContext  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments:0

Ads

 

Ads