Creating a dynamic Web project
You create and maintain the resources for your Web applications
in Web projects.
projects, dynamic Web projects enable you to create resources such as JavaServer
Pages and servlets.
To create a new dynamic Web project, complete the
Open the Java EE perspective.
In the Project Explorer, right click on Dynamic Web Projects, and
from the context menu. The New Dynamic Web Project wizard starts.
Follow the project wizard prompts.
- Project Facets
- A facet represents a unit of functionality in a Web project. For example,
the Dynamic Web Module facet enables the project to be deployed as a dynamic
Web module. A brief description of a project facet appears in the wizard when
you select it. Note that in many instances, you can view the constraints
for a project facet by right clicking on the facet and selecting project constraints
from the pop up menu.
- Target Runtime
- Use this field to define a new installed runtime environment. Runtimes
are used at build time to compile projects.
- Enterprise Application project (EAR Project)
- A new or existing Enterprise Application project (EAR Project) must be
associated with your new Web project to facilitate deployment. If you want
to override the default settings for the Enterprise Application project, you
can do so using the wizard. When your Web project is created at the end of
the wizard, the new Enterprise Application project is also created with the
name specified in the EAR project field. Note that the default is the name
of the web project appended with EAR (unless the ear project was selected
when you opened the wizard.)
- Context Root
- The context root is the Web application root, which is the top-level directory
of your application when it is deployed to the Web server. You can change
the context root after you create a project using the project Properties dialog,
which you access from the project's pop-up menu. The context root can also
be used by the links builder to ensure that your links remain ready to publish
as you move and rename files inside your project.