
Directives for Registered Servlet Directories
98 iPlanet Web Server, Enterprise Edition Programmer’s Guide to Servlets • May 2001
Directives for Registered Servlet Directories
For each registered servlet directory, the default object in obj.conf has a
NameTrans directive that assigns the name ServletByExt to all requests to access
that directory. For example:
NameTrans fn="pfx2dir" from="/servlet"
dir="D:/Netscape/Server4/docs/servlet" name="ServletByExt"
A separate object named ServletByExt has instructions for processing requests for
servlets:
Do not delete this object, even if no servlet directories are currently registered. If
this object is deleted, you can no longer use the Server Manager interface to register
servlet directories.
JSP Directives
The following line in mime.types sets the type for files with the extension .jsp:
type=magnus-internal/jsp exts=jsp
The following directive in obj.conf handles the processing of requests for files of
type
magnus-internal/jsp (that is, JSP files). It is necessary for legacy JSPs only.
Service fn="NSServletService" type="magnus-internal/jsp"
NOTE The information in this section applies to legacy (iPlanet Web Server
4.x) servlets and is deprecated.
<Object name="ServletByExt">
ObjectType fn="force-type" type="magnus-internal/servlet"
Service type="magnus-internal/servlet" fn="NSServletService"
</Object>
Commentaires sur ces manuels