Add a servlet or a JSP to the WAR.
Before you can add a new Servlet or JSP, you must have set the project classpath. For more information, see Setting a Project Classpath.
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.
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.
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.