Show TOC

Creating Dynamic Web ProjectsLocate this document in the navigation structure

Context

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.

Procedure

  1. Choose Start of the navigation path File Next navigation step New Next navigation step Project Next navigation step Web Next navigation step Dynamic Web Project End of the navigation path.
  2. Enter the necessary project settings.

    If you want to specify an Enterprise Application Project to wrap the Web project's archive, you can select the Add project to an EAR option. You can choose an existing Enterprise Application Project or enter the name of a new project (it will be created along with the creation of the Dynamic Web Project).

  3. Choose Finish .

Results

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 PropertiesProject 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.