Creating Web projects

You can use wizards to create Web modules in your Java EE project.

  1. In the Java EE perspective, right-click your enterprise application project and select New > Dynamic Web project . The Dynamic Web project wizard opens.
  2. In the Name field, type a name for the Web project. To change the default Project location, click the Browse button to select a new location.

    If you specify a non-default project location that is already being used by another project, the project creation fails.

  3. The Target runtime field is pre-populated with the selection from the enterprise project.
  4. In the Dynamic Web Module version field, accept the default value of 2.5.
  5. Optional: Select a pre-defined project configuration from the Configurations drop-down list.
  6. Optional: If you want to modify the configuration details, click modify:
  7. Optional: Select one or more project facets from the Project Facets list. To specify server runtime environments, click Show Runtimes and select one or more runtimes. After making your selections, you can save your custom configuration by clicking Save.
  8. Optional: Select the Add project to an EAR module check box to add the new module to an enterprise module (EAR) project. Type a new project name or select an existing enterprise module project from the drop-down list in the EAR Project Name combination box. Or, click New to launch the New EAR module Project wizard.
  9. Click Next.
  10. On the Dynamic Web Project page, in the Context Root: field, specify a folder for your source files or accept the default value.
  11. In the Content Directory: field, specify a folder for your source files or accept the default value (WebContent).
  12. In the Java Source Directory field, specify a folder for your source files or accept the default value (src).
  13. In the Output Folder: field, specify a folder for your output files or accept the default value (WebContent/WEB-INF/classes).
  14. Click Finish.