Netscape ENTERPRISE SERVER 6.0 - PROGRAMMER GUIDE TO SERVLETS Programmer's Manual page 101

Guide to servlets
Table of Contents

Advertisement

<Object name="default">
NameTrans fn=assign-name name=foo from=*.foo
...other directives...
</Object>
<Object name="foo">
ObjectType fn=force-type type=magnus-internal/servlet
Service fn="NSServletService" servlet="wasp"
</Object>
For another way to direct files of a specific type to a specific servlet, see the
description of the
servlet-mapping
described in the Servlet 2.2 API specification:
http://java.sun.com/products/servlet/index.html
For a way to direct files of a specific type to a specific servlet as in iPlanet Web
Server 4.x, see "Using Regular Expressions in rules.properties," on page 92.
For an example of the basic use of
examples in Chapter 2, "Syntax and Use of Obj.conf" in the Netscape
Service
Enterprise Server NSAPI Programmer's Guide.
When servlets are enabled, the following directive appears in the default object:
NameTrans fn="NSServletNameTrans" name="servlet"
This directive is used for servlet virtual path translations and for the URI cache. Do
not delete this line.
Also,
always has the following object, which you should not delete:
obj.conf
<Object name="servlet">
ObjectType fn=force-type type=text/html
Service fn="NSServletService"
</Object>
If you delete this object, you can no longer use the Server Manager interface to
enable servlets and modify servlet settings.
For more information, see the Netscape Enterprise Server NSAPI Programmer's Guide.
element in the
web.xml
, see the discussion of
NSServletService
Appendix A
Servlet Settings in magnus.conf and obj.conf
Objects in obj.conf
file, which is
101

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enterprise server 6.0

Table of Contents