Netscape ENTERPRISE SERVER 6.1 - PROGRAMMER GUIDE TO SERVLETS Programmer's Manual page 87

Guide to servlets
Table of Contents

Advertisement

Virtual Servlet Path Example
This example shows how to specify that the logical URL
http://poppy.example.com/plans/plan1
invokes the servlet defined in
server_root
/docs/plans/releaseA/planP2Version1A.class.
Specify the servlet identifier, class file, and class path.
1.
In the Legacy Servlets>Configure Servlet Attributes page in the interface, do
the following:
In the Servlet Name field, enter an identifier for the servlet, such as
(Notice that this is not necessarily the same as the class file name).
In the Servlet Code field, enter the name of the class file, which is
planP2Version1A
not required.
In the Servlet Classpath field, enter the absolute path name for the
directory, jar or zip file where the servlet class file resides, or enter a URL
for a directory. In this example, you would enter
server_root
/docs/servlet/plans/releaseA
D:/netscape/server4/docs/servlet/plans/releaseA
In the Servlet Args field, enter the additional arguments that the servlet
needs, if any. (This example does not use extra arguments.)
Save the changes.
To make this change programmatically, add the following lines to the
configuration file
servlet.plan1A.classpath=D:/netscape/server4/docs/servlet/pla
ns/releaseA/
servlet.plan1A.code=planP2Version1A
. Don't specify any directories. The
servlets.properties
Chapter 8
Configuring Servlets in the Default Virtual Server
.class
. (For example:
.)
:
Legacy Servlet and JSP Configuration
.
plan1A
extension is
87

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enterprise server 6.1

Table of Contents