On the Servlet tab in the Server Properties dialog box, you can disable servlet execution in a server and configure server aliases.
All servlets are part of a Web application, and most servlet properties are configured using the Web Application Properties dialog box—see “Configuring Web application properties”. The properties that you can configure on the Servlet tab are described below.
Displaying the servlet execution properties
Highlight the icon for the server of interest.
Choose File | Server Properties.
Select the Servlet tab, and configure the following properties:
Servlet Execution Enable/Disable This option determines whether servlets can execute on a server. If the option is disabled, no installed servlets can be invoked. By default, servlet execution is enabled.
Servlet Aliases Specifies the list of path prefixes that you can use to invoke servlets from HTTP URLs. For example, if /servlet/ is a path prefix, this URL invokes a servlet named MyServlet:
http://yourhost:8080/servlet/MyServlet
The default setting specifies /servlet/ as the only path prefix. To override the default, enter one or more prefixes, each on a line by itself. For example:
/servlet/ /servlets/
Copyright © 2005. Sybase Inc. All rights reserved. |