
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.
Use unique Servlet/JSP names in a Web archive.
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.