Defining a new servlet

When defining a new servlet, you can install it in a server at the same time, or you can define the servlet in the top-level Servlets folder, then install it in one or more servers later.

  1. To create a servlet and install it in a server:

    • Expand the server’s icon, then highlight the Installed Servlets folder within it.

    • Choose File | Install Servlet.

    • In the Servlet Wizard, click Create and Install a New Servlet.

    To define a servlet that is not installed in a server:

    • Highlight the icon for the top level Servlets folder.

    • Choose File | New Servlet.

  2. Enter a name for the servlet. This name will be used in HTTP URLs that invoke the servlet.

  3. Configure the servlet properties as described in “Configuring servlet properties”.