Before you create Web components (servlets, JSP files, and so on), you need to create a Dynamic Web Project. The role of this project type is to organize and collect the Web components of a Java EE 5 application. All class files, resources, and deployment descriptors that are supposed to be packed in the same Web archive (WAR) are to be created in the same Dynamic Web Project.
The project has configurable properties called facets . You can modify the project using its facets. During the creation of the project, you can choose Modify and select a set of facets in the pages of the new project wizard. Later at any time, you can reach them using Properties → Project Facets in the context menu of the project.
You can now use the corresponding wizards to create the necessary servlets, JSP pages, and so on.