|
|
|
| |
Servlet
Context
Servlet Context is a window for a servlet to
view it environment. A servlet can use this
interface to get information such as initialization
parameters for the web application or the servlet
container’s version. Every web application has
only one ServletContext and it is accessible
to all the active resources of that application.
It is also used by the servlets to share the
data with one another.
Every
web application has exactly one instance of
javax.servlet.ServletContext . The context is
initialized at the time that the web application
is loaded. As we have the initialization parameter
for servlet we have initialization parameter
for servlet context. The servlet of a web application
can retrieve these initialization parameter
using the methods of the ServeltContext interface.The
servlet context initialization parameter are
used to specify application wie information.
|
|