Creating a WebFacing Web project

The WebFacing Web project is Struts-based and uses Struts 1.3. The Java™ EE level depends on the version of WebSphere® Application Server targeted during project creation. For WebSphere Application Server Version 7.0, it is Java EE 5.0. For WebSphere Application Server Version 8.0, it is Java EE 6.0.

To create a WebFacing Web project:

  1. Click File > New > Project.
  2. Expand WebFacing in the Wizards pane, select WebFacing Web Project, and then click Next to open the WebFacing Web Project wizard.
  3. In the WebFacing Web Project wizard:
    1. Enter a name for your project in the Project name field.
    2. In the Project location field, when Use default location is selected, the project is created in the file system location where your workspace resides. To change the default file system location, clear the check box and locate the path using the Browse button.
    3. Select a server in the Target runtime combo box. The server you select determines the project's Java EE version. 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 step f below. Click New Runtime to define a new server.
    4. Notice the Dynamic web module version of your WebFacing project. The dynamic web module version adds support for the Java Servlet API and corresponds to the Java EE level (2.4 for Java EE 1.4, 2.5 for Java EE 5, and 3.0 for Java EE 6). You can modify this setting on the Project Facets page. Access the page with the Modify button beside the Configuration field.
    5. Use the default configuration for the server you selected or select <custom> if you want to configure the project yourself. If you want to modify a project configuration, click Modify to display the Project Facets page. You can add or remove facets from your project using the Project Facets page.
    6. Ensure that the Add project to an EAR check box is selected. A default name for the EAR project is 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.
    7. 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: If you select Configure advanced settings, the next few screens allow you to specify advanced project settings, such as, the Java build path, Web module settings, and Struts settings.

To add WebFacing support to an existing Web project:

  1. Right click on the Web project and select Properties. This displays the properties dialog for the project.
  2. Select the Project Facets node.
  3. Click OK to create an unconverted WebFacing project, or click the Further configuration available link to specify the settings for your WebFacing project as described below.
  4. You can modify Struts settings, or accept the defaults.
    Note: WebFacing Web projects require Java EE 1.4, or later, and Struts 1.3. WebFacing Portlets require Java EE 1.4, or later, and Struts for IBM® portlets 6.0.
  5. Click Next. The next screens allow you to select display file and UIM source members to convert.

Feedback