Red Hat NETSCAPE ENTERPRISE SERVER 6.0 - NSAPI PROGRAMMER GUIDE Uživatelský manuál Strana 90

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 124
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 89
Legacy Configuration Files
90 iPlanet Web Server, Enterprise Edition Programmer’s Guide to Servlets • May 2001
For a way to direct files of a specific type to a specific servlet in the obj.conf file,
see “Init Directives in magnus.conf,” on page 95.
contexts.properties
The contexts.properties file defines contexts, which allow multiple servlets to
exchange data and access each other’s fields, for the default virtual server only.
Contexts are useful for defining virtual servers or for code isolation. If no contexts
are defined, the default global context is used for all servlets.
If the context for a servlet is not defined, the servlet belongs to the global context.
You can use the same servlet in multiple contexts.
Only the
name of a context is required. Any other unspecified properties are
inherited from the global context. You can also change the properties of the global
context. The comments in the
contexts.properties file list the default property
values of the global context.
Here is an example of
contexts.properties.
# @(#)contexts.properties (autogenerated)
#
# Contexts Properties:
#
# context.<context_name>.sessionmgr=session manager (some session managers
# (like MMapSessionManager) can only be instatiated once within the
# server
# context.<context_name>.sessionmgr.initArgs=list of (name, value) pairs which
# will represent parameters specific to the session manager
# context.<context_name>.initArgs=list of (name, value) pairs which will be added
# to this context’s attributes
# context.<context_name>.respondCookieVersion=(cookie version) tells the server
# whether to respond with specific cookie version
# context.<context_name>.sessionExpireOnClose(true|false) tells the server to
# mark session cookies as directed to expire when the user quits
# the browser
# context.<context_name>.tempDir=path (forward slashes only) - sets up Servlet API
# 2.2 property for the temporary directory
# context.<context_name>.reloadInterval=seconds - time interval within which the
NOTE All JSPs belong to the default global context. You cannot define
custom contexts for JSPs. However, you can change the properties
of the global context to affect JSPs.
Zobrazit stránku 89
1 2 ... 85 86 87 88 89 90 91 92 93 94 95 ... 123 124

Komentáře k této Příručce

Žádné komentáře