Registering Individual Servlets
The Enterprise Server treats any file in a registered servlet directory as a servlet.
There is no need to register individual servlets that reside in these directories
unless any of the following criteria apply:
•
The servlet takes input parameters that are not passed through the request
URL.
•
You want to set up additional virtual URLs for the servlet.
•
Your servlets are packaged or in a
or
files for packaged servlets.
.jar
If any of these conditions is true, register the individual servlet by using the Legacy
Servlets>Configure Servlet Attributes page in the Server Manager interface.
Alternatively, you can edit the file
servlet.
When registering an individual servlet, specify the following attributes:
•
Servlet Name -- The Enterprise Server uses this value as a servlet identifier to
internally identify the servlet. (This identifier is not part of the URL that is used
to invoke the servlet, unless by coincidence the identifier is the same as the
class code name.)
•
Servlet Code (class name) -- the name of the class file. You do not need to
specify the
.class
•
Servlet Classpath -- This is the absolute pathname or URL to the directory or
zip/jar file containing the servlet. The classpath can point anywhere in the file
system. The servlet classpath may contain a directory, a
URL to a directory. (You cannot specify a URL as a classpath for a zip or jar
file.)
If the servlet classpath is not a registered servlet directory, you must
additionally provide a servlet virtual path for it (as discussed in "Specifying
Servlet Virtual Paths," on page 86) to make the servlet accessible to clients.
Enterprise Server supports the specification of multiple directories, jars, zips,
and URLs in the servlet classpath.
•
Servlet Args -- a comma delimited list of additional arguments for the servlet if
required.
file. The server does not search
.jar
servlets.properties
extension.
Chapter 8
Configuring Servlets in the Default Virtual Server
to add an entry for the
or
.jar
.zip
Legacy Servlet and JSP Configuration
.class
file, or a
85
Need help?
Do you have a question about the NETSCAPE ENTERPRISE SERVER 6.1 - PROGRAMMER GUIDE TO SERVLETS and is the answer not in the manual?
Questions and answers