
Legacy Configuration Files
Chapter 8 Legacy Servlet and JSP Configuration 87
Legacy Configuration Files
This section discusses the purpose and use of the following files:
•
servlets.properties
•
rules.properties
•
contexts.properties
All of these files reside in the directory server_id
/config.
servlets.properties
The servlets.properties file defines global servlet settings and the list of
servlets in the system, for the default virtual server only.
An example of a global servlet setting is which servlet to run when the iPlanet Web
Server starts up. The
servlets.properties file also specifies configuration
information for individual servlets. Configuration information includes the class
name, the classpath, and any input arguments required by the servlet.
If you want to specify a virtual path translation for a servlet, the servlet must be
configured in the
servlets.properties file.
You can specify configuration information for servlets either by using the Legacy
Servlets>Configure Servlet Attributes page in the Server Manager interface or by
editing
servlets.properties directly. Whenever you make a change in the
Legacy Servlets>Configure Servlet Attributes page in the Server Manager interface,
the system automatically updates
servlets.properties.
When specifying attributes for a servlet, you specify a
name parameter for the
servlet. This name does not have to be the name of the class file for the servlet; it is
an internal identifier for the servlet. You specify the name of the class file as the
value of the
code parameter.
NOTE In iPlanet Web Server 6.0, a
web-apps.xml file exists for each
virtual server, allowing you to configure separate web applications
for each virtual server. The
servlets.properties,
rules.properties, and contexts.properties files apply only to
the default virtual server for the server instance; they exist for
backward compatibility. Using the
web-apps.xml file for all web
application configuration is recommended. For more information
about the
web-apps.xml file, see Chapter 2, “Web Applications.”
Komentáře k této Příručce