Servlet Aliasing (Beta)
Contents / Settings /
Procedures / Buttons
The Servlet Alias page allows you to specify the pathname mapping rules that the
Java Server 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 Server servlets can be called from within HTML documents (using server-side
includes) or from within other java programs.
For more information on servlets, see Core
Servlets and Java Server Overview.
Settings
The Servlet Alias page has the following fields:
URL Pathname
The relative pathname for the servlet. Pathnames are relative to the
location where the Java Server is installed on your machine. For example,
the URL Pathname for the cgi-bin
servlet is
/cgi-bin
. However, the relative pathname is
server_root/cgi-bin
. If your server_root
is actually /home/~erik/JavaServerBeta
, your actual servlet
URL pathname is /home/~erik/JavaServerBeta/cgi-bin
.
Servlet Invoked
The name of the servlet being invoked. For example, once you have setup a
servlet alias, you can connect to the servlet by entering the alias into a
server-side include or URL.
Procedures
To Add a Servlet Alias:
- Click Add to open a new line.
- Enter the URL Pathname you want to use to invoke the servlet.
- Enter the name of the servlet.
- Click Save.
To Delete a Servlet Alias:
- Select the alias from the list.
- Click Delete.
- Click Save.
To Edit a Servlet Alias:
- Select an alias from the list.
- Click Modify.
- Remove the existing text and enter new text, or append text to the existing
information.
- Click Save.
Note: To move to a new field, click on that field.
Buttons
To make changes to the Servlet Alias page and have those settings
take affect, use the five buttons at the bottom of the screen. These
are:
- 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 Server and changes
the settings.
- 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.
Note: If you Add, Modify, or Remove an alias pathname, you must
Save before the changes take affect.
Top
java-server-feedback@java.sun.com