Java Servlets and JavaServerPages (JSP)
272
Netscape Enterprise Server Administrator’s Guide
Making Servlets Available to Clients
You can install JSP files simply by putting them in any directory in or under the
document root—you do not need to do anything special to install JSP files—so
long as the following conditions are true:
•
The Enterprise Server has been instructed to use the JDK.
•
Both servlets and JSP are enabled in the server.
For servlets, you have a choice of two ways to make a servlet accessible to
clients:
•
Put the servlet class file in a directory that has been registered with the
Enterprise Server as a servlet directory. For more information, see
“Specifying Servlet Directories.”
•
Define a servlet virtual path translation 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 “Configuring Servlet Virtual
Path Translations,” on page 275.
Specifying Servlet Directories
One of the ways to make a servlet accessible to clients is to put it into a
directory that has been registered with the Enterprise Server as a servlet
directory. Servlets in registered servlet directories are dynamically loaded when
needed. The server monitors the servlet files and automatically reloads them on
the fly as they change.
For example, if the
SimpleServlet.class
servlet is in the
servlet
subdirectory of the server’s document root directory, you can invoke the servlet
by pointing the web browser to:
http://
your_server/servlet/SimpleServlet
You can register any number of servlet directories for the Enterprise Server.
Initially, the web server has a single servlet directory per server instance, which
is
server_id/docs/servlet/
.
Summary of Contents for Netscape Enterprise Server
Page 30: ...Contacting Technical Support 30 Netscape Enterprise Server Administrator s Guide ...
Page 32: ...32 Netscape Enterprise Server Administrator s Guide ...
Page 56: ...Sending Error Information to Netscape 56 Netscape Enterprise Server Administrator s Guide ...
Page 66: ...66 Netscape Enterprise Server Administrator s Guide ...
Page 112: ...Managing a Preferred Language List 112 Netscape Enterprise Server Administrator s Guide ...
Page 158: ...158 Netscape Enterprise Server Administrator s Guide ...
Page 182: ...Using the Watchdog uxwdog Process Unix 182 Netscape Enterprise Server Administrator s Guide ...
Page 196: ...Viewing Events Windows NT 196 Netscape Enterprise Server Administrator s Guide ...
Page 218: ...Enabling the Subagent 218 Netscape Enterprise Server Administrator s Guide ...
Page 266: ...266 Netscape Enterprise Server Administrator s Guide ...
Page 302: ...Enabling WAI Services 302 Netscape Enterprise Server Administrator s Guide ...
Page 310: ...310 Netscape Enterprise Server Administrator s Guide ...
Page 446: ...Customizing the Search Interface 446 Netscape Enterprise Server Administrator s Guide ...
Page 448: ...448 Netscape Enterprise Server Administrator s Guide ...
Page 454: ...Responses 454 Netscape Enterprise Server Administrator s Guide ...
Page 464: ...Referencing ACL Files in obj conf 464 Netscape Enterprise Server Administrator s Guide ...
Page 504: ...504 Netscape Enterprise Server Administrator s Guide ...