NAME | SYNOPSIS | DESCRIPTION | EXAMPLES | ATTRIBUTES | SEE ALSO
site_path/conf/servlets.properties
This file contains the name of each servlet and the initialization parameters of the servlet. You can either place the properties file in the default location, or specify the name of the servlets.properties file on startup using the command htservlet and specifying -i hostname for the host name and -p properties_file for the name of the properties file.
The servlet.properties file may be updated using the SunTM WebServerTM Administration Console or the htservlet(1m) utility.
You can specify the following servlet properties definitions:
Code
Code base
Initial arguments
The definitions in the servlets.properties file have the following format:
servlet.<servlet_name>.code=<servletclass> servlet.<servlet_name>.codebase=<URL> servlet.<servlet_name>.initArgs=<name>=<value>[,<name>=value...]
The following keyword directives are valid in the servlet.properties file:
Names the name of the servlet main class file.
Names the jar file or the URL of the servlet's codebase. Used only for remote servlets.
Defines the optional initial arguments passed to the servlet. Used in the format name=value [[, name=value...]]
# # Copyright (c) 1998, by Sun Microsystems, Inc. # All rights reserved. # # servlets.properties # # Sample SWS Servlets Properties File # ############################################################################## # the list of servlets to be loaded at startup time servlets.startup=simple hello # Date Servlet -- JSDK Sample Servlet servlet.date.code=DateServlet # Finger Servlet -- JSDK Sample Servlet servlet.finger.code=FingerServlet # Hello World Servlet -- JSDK Sample Servlet servlet.hello.code=HelloWorldServlet # Snoop Servlet -- JSDK Sample Servlet servlet.snoop.code=SnoopServlet servlet.snoop.initArgs= port=23, host=localhost # Simple Servlet -- JSDK Sample Servlet servlet.simple.code=SimpleServlet
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
Availability | SUNWhttpc |
Interface Stability | Evolving |
NAME | SYNOPSIS | DESCRIPTION | EXAMPLES | ATTRIBUTES | SEE ALSO