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

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 124
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 79
Enabling Servlets and JSP
80 iPlanet Web Server, Enterprise Edition Programmer’s Guide to Servlets • May 2001
Enabling Servlets and JSP
To enable and disable servlets and JSPs, use the Java>Enable/Disable Servlets/JSP
page in the Server Manager interface.
By default, regardless of whether servlets are enabled or disabled, the file
obj.conf contains objects with names such as servlet, jsp, and ServletByExt.
Do not delete these objects. If you delete them, you can no longer activate servlets
through the Server Manager.
Making JSPs Available to Clients
No special steps are needed to make JSP pages available to clients other than
making sure that servlets and JSP are enabled on the iPlanet Web Server. So long as
JSP is enabled, the iPlanet Web Server treats all files with a
.jsp extension as JSPs.
(Do not put JSP files in a registered servlet directory, since the iPlanet Web Server
expects all files in a registered servlet directory to be servlets.)
Configuring Servlets in the Default Virtual Server
There are three ways to make a servlet accessible to clients in the default virtual
server. The second two ways are provided for backward compatibility with iPlanet
Web Server 4.x.
Include the servlets in web applications and deploy those web applications, as
with any other virtual server. How to do this is described in Chapter 2, “Web
Applications.” This is new in iPlanet Web Server 6.0.
Put the servlet class file in one of the directories that has been registered with
the iPlanet Web Server as a servlet directory. For more information, see
“Registering Servlet Directories” on page 81.
Define a servlet virtual path for the servlet. In this case, the servlet class can be
located anywhere in the file system or even reside on a remote machine. For
more information, see “Specifying Servlet Virtual Paths” on page 84.
NOTE You cannot run JSPs in aliased directories in iPlanet Web Server.
For example, if the document root is server_root
/docs, mapping
http://foo.com/myjsp to /some/other/dir instead of
server_root
/docs/myjsp does not work.
Seitenansicht 79
1 2 ... 75 76 77 78 79 80 81 82 83 84 85 ... 123 124

Kommentare zu diesen Handbüchern

Keine Kommentare