The Context
property sheet enables you to edit the attributes
of a Context
.
To display the Context property sheet:
On the Attributes pane of the Context
property sheet, you can
set the following properties:
org.apache.catalina.core.Standard.Context
.true
, cookies are used
for session identifier communication if supported by the client. This is the
default behavior. If false,
cookies are disabled in favor of
URL rewriting by the application. To set the cookies property, click on the
right-hand column of the cookies row and choose a value from the list.ServletContext.getContext()
method. If crossContext
is set to true
, calls within the current application to ServletContext.getContext()
successfully return a request dispatcher for other web modules running on
the current virtual host. In high-security environments, you should set the
property to false
so that getContext()
will always
return null. This is the default behavior. To set the crossContext property,
click on the right-hand column of the crossContext row and choose a value
from the list.0
.
To specify the debug property, type a number in the right-hand column of the
debug property row..war
file in cases where the web module is being
executed directly from the .war
file. To set the docBase property,
type a pathname in the docBase property text field. You can specify an absolute
pathname, or a pathname that is relative to the appBase
directory
of the owning Host
.true
, any explicit settings
in this Context
element will override any corresponding settings
in the DefaultContext
element associated with the owning Host
.
If set to false
, settings in the DefaultContext
will be used. The default setting for this property is false
.
To set the override property, click on the right-hand column of the override
row and choose a value from the list. Host
must be unique. To set the path
property, type a path in the path property text field. If you specify a context
path of an empty string, such as ("")
, you are defining
the default web module for the current Host, which will process all requests
not assigned to other contexts. true
, the privileged property
allows the current context to use container servlets, like the manager servlet.
The default value is false
. To set the privileged property, click
on the right-hand column of the privileged row and choose a value from the
list.true
, Catalina will monitor classes
in WEB-INF/classes
and WEB-INF/lib
for changes,
and automatically reload the web module if a change is detected. This feature
is useful, but not recommended for use on deployed production web modules
because of significant runtime overhead. To set the reloadable property, click
on the right-hand column of the reloadable row and choose a value from the
list.true
, Catalina enables a JNDI InitialContext
for the current web module. To set the useNaming property, click on the right-hand
column of the useNaming row and choose a value from the list.workDir
property is the pathname to a scratch
directory to be provided for the current Context
for temporary
read-write use by servlets within the associated web module. This directory
will be made visible to servlets in the web module by a servlet context attribute
named javax.servlet.context.tempdir
. To specify the workDir property,
type a path in the workDir property text field.org.apache.catalina.Wrapper
implementation class that
will be used for servlets managed by this Context. The default value is
org.apache.catalina.core.StandardWrapper
.See also | |
---|---|
Tomcat 4.0.x Context Node Adding a Context Deleting a Context |