The Servlets FAQ has the following questions:
Arguments to the servlets can be passed at two levels.
<servlet code="servlet_name" stock_symbol="SUNW">
Once activated, servlets live until the server exits or until the server calls the destroy method on the servlet. For servlets associated with servlet aliases, unmapping the alias will destroy the servlet, and subsequent access to the servlet will reload the servlet.
See the Internal Servlets page, and the Sample Servlets page for information on some of the available servlets. Also look in the server_root/servlets directory of the release for more servlets.
Make sure that your CLASSPATH is set to include the JavaTM Web ServerTM classes. This can be done at the command line (using java -classpath ....) or else in the environment variable.
The following is the proper syntax:
test.Servlet.initArgs=\
fruit=apple,qty=5
SSIncludeServlet will clone its ServletRequest, and substitute the parameters embedded in the tag.
Top java-server-feedback@java.sun.com |
Copyright © 1997
Sun Microsystems, Inc. All Rights Reserved. |