When you create a new WebFacing project, you select WebFacing
Web project if you want to deploy your project to a Web application
server. By default, the WebFacing Web project will be J2EE 1.4 and Struts-based.
To
create a WebFacing Web project:
Click File > New > Project.
Expand WebFacing in the Wizards pane, select WebFacing
Web Project, and then click Next to open the WebFacing
Web project wizard.
You
can also choose WebFacing Portlet Project when you
create a new WebFacing project. This will create a new J2EE 1.4 Struts WebFacing
portlet project. You can also add a WebFacing portlet to an existing non-Struts
based portlet project.
In the WebFacing Web Project wizard:
Enter a name for your project in the Name field.
Select a server in the Target Runtime combo
box. The server you select will determine the project's servlet and J2EE versions.
Note that this combo box is disabled if the EAR project already exists. To
ensure that you can select a server, specify a new EAR project in the next
step.
Ensure that the Add module to an EAR project check
box is selected. A default name for the EAR project will be provided if this
is the first project you create. If your workspace already contains an EAR
project, it will be selected as the default. You can change the EAR project
name or keep the default.
Click Next. The next few screens allow
you to select display file and UIM source members to convert. If you want
to create the WebFacing Web project without converting, click Next until you
see the Complete WebFacing Project page and click Finish
to create the project.
Note: Note: If you select Configure
advanced settings, the next few screens will also allow you to
specify advanced project settings.
To add WebFacing support to an existing Web project:
Right click on the Web project and select Properties.
This displays the properties dialog for the project.
Select the Project Facets node.
Click the Add/Remove Project Facets button.
Select the WebFacing and Struts facets (if they are not already selected).
You can add other facets to the project but they are not required for a WebFacing
project. After this page, you can press Finish to create an un-converted WebFacing
project.
Click Next. You can modify Struts settings, or accept the defaults.
Click Next. The next screens allow you to select display file and UIM
source members to convert.