Show TOC

 Loading a Servlet or JSP from FilesLocate this document in the navigation structure

Use

You use this procedure to add a servlet or a JSP components to a WAR file. The Deploy Tool enables you to choose among the Web components class files added as additional archive files.

Note

Use this procedure to add numerous Web components simultaneously. It is easy and fast.

Prerequisites

Before you can load Servlet/JSP from files, you must have:

Procedure
  1. Choose the J2EE Componentstab.
  2. Choose a WAR file from the available in the list.
  3. Choose J2EE Components → Add Servlet/JSP → Add from Files. The Add Servlet and JSP dialog box appears. For each servlet or JSP that you have added for that WAR file, the dialog box lists the name of the file and the servlet or JSP name. Check the checkboxes in front of the names of the servlets and JSPs that will be used by the Server/JSP.
    Note

    The list with the servlets and JSPs is taken from the ones, available in the files and directories under the Files tab.

  4. Choose OK.
Result

The Servlet/JSP appears at the J2EE Components tab as a Web archive subnode.