Servlet Output
34 iPlanet Web Server, Enterprise Edition Programmer’s Guide to Servlets • May 2001
You would also need to include the following in your web.xml file:
<servlet>
<servlet-name> pparams </servlet-name>
<servlet-class> PrintPackage.PrintParams </servlet-class>
</servlet>
<servlet-mapping>
<servlet-name> pparams </servlet-name>
<url-pattern> /PrintParams </url-pattern>
</servlet-mapping>
You must also include any servlet initialization parameters in the web.xml file.
For legacy (iPlanet Web Server 4.x) servlets, the
code parameter specifies the
.class file for the servlet and is required. The codebase parameter is required if
the servlet is not defined in the
servlets.properties file and the .class file is not
in the same directory as the HTML file containing the
<SERVLET> tag. Legacy
servlets must be configured in the default virtual server and do not require a
web.xml file.
For more information about SSI commands, see the Programmer’s Guide for iPlanet
Web Server.
Servlet Output
When iPlanet Web Server is started in the background, which it is by default, the
System.out and System.err output of servlets are not sent to the web server’s
error log, because servlets are external to iPlanet Web Server.
On Unix, you can modify your server_root
/https-server_id/start file to run iPlanet
Web Server in the foreground or to redirect servlet output. First enter the following
command from the server_root
/https-server_id directory:
./start -shell
This command puts you in the server_root/bin/https/bin directory. Then enter
the following command:
./ns-httpd -d server_root/https-server_id/config
On NT, you can run iPlanet Web Server in the NT console, and thus in the
foreground, by including the following line in the
magnus.conf file:
Init fn="nt-console-init" stdout=console stderr=console
Komentáře k této Příručce