Java Server

Servlet Loading (Beta)


Contents / Settings / Procedures / Buttons

The Servlet Loading page allows you to enter, edit, or delete servlet loading information for local or remote servlets. After you've loaded a servlet, you can invoke it whenever you want to by:

Settings

The Servlet Loading page has the following two options:

Add a New Servlet
Allows you to add a new servlet to the list of servlets to be invoked. To add a new servlet:

Configure a Servlet
Allows you to define when the servlet is invoked, if it is a remote or local servlet, and other information. For each servlet in the Servlets Configure list, Java Server displays the following information: To Enter Information for a Servlet:
  1. In the Name field of the Add a New Servlet screen, enter a unique name for the servlet.
  2. In the Class Name field of the Add a New Servlet screen, enter the servlet's class name, which consists of the package name without the ".class" extension. For example, "sun.server.http.FileServlet" is a valid class name.
  3. In the Argument field of the Configure a Servlet screen, enter comma-separated "name=value" pairs.
  4. To load the servlet when the server starts, click Yes.
    (By default, servlets are only loaded when you activate them.)
  5. Click Save.

    If the servlet is a remote servlet, do the following step in addition to doing the above:

  6. In the Class Location field, enter the full URL, ending with a slash, of the servlet's class file on the remote server. For example, if HelloWorld.class exists on a remote Java Server named nightsky.com in the top level public_html directory, then the URL is http://nightsky.com/.

Procedures

To Delete Information for a Servlet:

  1. Select the entry that you want to delete.
  2. Click Delete.

To Edit a Servlet Entry:

  1. Select the entry.
  2. Delete the entry.
  3. Reenter the entry.
  4. Click Save.

Buttons

To make changes to the Servlet Loading page and have those settings take affect, use the three buttons at the bottom of the screen. These are:
Top
java-server-feedback@java.sun.com