Red Hat NETSCAPE ENTERPRISE SERVER 6.0 - NSAPI PROGRAMMER GUIDE Bedienungsanleitung Seite 97

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 124
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 96
Objects in obj.conf
Appendix A Servlet Settings in magnus.conf and obj.conf 97
For another way to direct files of a specific type to a specific servlet, see the
description of the
servlet-mapping element in the web.xml file, which is
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 89.
For an example of the basic use of
NSServletService, see the discussion of
Service examples in Chapter 2, “Syntax and Use of Obj.conf” in the NSAPI
Programmer’s Guide for iPlanet Web Server.
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,
obj.conf always has the following object, which you should not delete:
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 NSAPI Programmer’s Guide for iPlanet Web Server.
<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>
<Object name="servlet">
ObjectType fn=force-type type=text/html
Service fn="NSServletService"
</Object>
Seitenansicht 96
1 2 ... 92 93 94 95 96 97 98 99 100 101 102 ... 123 124

Kommentare zu diesen Handbüchern

Keine Kommentare