You can use wizards to create Web modules in your Java EE project.
- In the Java EE perspective,
right-click your enterprise application project and select . The Dynamic Web project wizard opens.
- 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.
- The Target runtime field is pre-populated
with the selection from the enterprise project.
- In the Dynamic Web Module version field,
accept the default value of 2.5.
- Optional: Select a pre-defined project configuration
from the Configurations drop-down list.
- Optional: If you want to modify the configuration
details, click modify:
- 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.
- 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.
- Click Next.
- On the Dynamic Web Project page, in the Context
Root: field, specify a folder for your source files or
accept the default value.
- In the Content Directory: field,
specify a folder for your source files or accept the default value
(WebContent).
- In the Java Source Directory field,
specify a folder for your source files or accept the default value
(src).
- In the Output Folder: field, specify
a folder for your output files or accept the default value (WebContent/WEB-INF/classes).
- Click Finish.