To set the project's J2EE settings, or to specify the target
run-time server for the project, click the
Show Advanced >> button,
and supply any of the following values:
Note: By selecting a WebSphere
Portal version value above, both Servlet version and Target
server are set to the appropriate values. Editing these two fields
is not recommended.
- Servlet version
- Specifies the version of the Servlet and JSP specifications to be included
in your portlet application. Version 2.3, the default,
includes a Servlet Specification level of 2.3 and a JSP Specification level
of 1.2. This default should be used to create portlet projects targeted for WebSphere Portal
5.0 or 5.1 servers.
Use the 2.2 servlet
version when you are creating an Empty portlet project that you intend to
import a WebSphere Portal
4.x portlet WAR file into. Version 2.2 includes a Servlet
Specification level of 2.2 and a JSP Specification level of 1.1. Features
such as Servlet Filters and Life Cycle Event Listeners cannot be used if this
level is chosen.
Note that the servlet version will determine the choice
of target servers that appear in the drop-down list.
- Target server
- Select the version of WebSphere Portal that your portlet application
will be installed to (either WebSphere Portal
v5.0 or v5.1).
Note: Ensure that you do not accidentally select one of
the WebSphere Application
Server options.
- Add module to an EAR project
- Deselect this check box only if you do not intend to deploy the
portlet.
- EAR project
- Name of an enterprise application project (EAR project) that the portlet
project should be associated with for purposes of deployment. The information
used to deploy the portlet project to WebSphere Portal in the test environment
will be added in this project. All portlet applications associated with a
single EAR project will run on a single session at the test environment. You
may separate portlet applications into multiple EAR projects. You should use
the same EAR project for other projects that are related.
- Context root
- A context root for the portlet project. It is used as the top-level directory
of your portlet application when it is deployed to WebSphere Portal in the test environment.
It must not be same as the ones used by other projects.
- Add support for annotated Java™ classes
- Ensure that this check box is selected if you plan on using model annotations
to generate code in your project.