Show TOC Start of Content Area

Function documentation New Servlet or JSP Addition  Locate the document in its SAP Library structure

Use

Add a servlet or a JSP to the WAR.

Prerequisites

Before you can add a new Servlet or JSP, you must have set the project classpath. For more information, see Setting a Project Classpath.

Activities

       1.      In your DLP project, choose the J2EE Components tab.

       2.      Select a WAR.

       3.      Choose J2EE Components Add Servlet/JSP Add New. A dialog box appears.

       4.      Enter the name of the new Servlet/JSP.

This graphic is explained in the accompanying text

Use unique Servlet/JSP names in a Web archive.

       5.      Choose OK.The Servlet/JSP appears as a Web archive sub-node on the J2EE Components tab.

Caution

The type of an added component (JSP or Servlet) cannot be changed. We recommend that you delete the component and add a proper one, rather than trying to change the type.

       6.      Specify the properties of the component. For more information, see Editing the Properties of a New Servlet/JSP.

 

 

End of Content Area