Java Web Server 2.0  

Administration Tool: Servlet Aliases

Panel Description


Documentation Contents / Documentation Index / Glossary / Administration Tool Help
Purpose
The Servlet Aliases page enables you to specify the path name mapping rules that Java Web Server(TM) uses to invoke servlets. These rules allow you to use a shortcut URL to call a servlet from your browser, or to embed the shortcut into your files. Java Web Server servlets can be called from within HTML documents (for example, using server-side includes) or from within other Java programs.

For more information on servlets, see Introduction to Servlets and the Writing Your First Servlet.

Note: In most cases, servlets can be created and removed as needed. However, do not remove the following Java Web Server system servlets: file, ssinclude, cgi, imagemap, and invoker.
 

Location of panel in Administration Tool:
Log In --> Service name --> Manage --> Setup  
              |_ Servlet Aliases
Fields
Alias
The alias for the servlet, which is the part of the servlet's URL that appears after http://your_machine:port. Suppose, for example, that you type the alias /hi for a servlet named hello. Then users could invoke the servlet by typing
      http://your_machine:port/hi
  
instead of
      http://your_machine:port/servlet/hello
 
Servlet Invoked
The name of the servlet that will be run in response to the alias. To continue the example shown in the description of the Alias field, above, you would type the name of the hello servlet: hello.
 
Buttons
Add
Adds a new servlet alias pathname to your alias list.
 
Modify
Selects a field and allows you to modify the selected servlet alias pathname.
 
Remove
Removes the selected servlet alias from the alias list.
 
Save
Writes your changes to the Java Web Server and changes the settings.

Note: If you Add, Modify, or Remove an alias pathname, you must Save before the changes take affect.
 

Revert
Takes you back to the previously saved settings for all fields in the screen. Use this button to undo changes you have not yet saved.
 
Procedures
To Add a Servlet Alias
To Delete a Servlet Alias
To Edit a Servlet Alias

Top
java-server-feedback@java.sun.com
Copyright © 1999 Sun Microsystems, Inc.
All Rights Reserved.