Creating Struts enabled Web projects

Struts is a framework for Web application development that helps you create well-architected applications. The Struts tools in this product make it easier for you to create and test a Struts-based Web application.

You must be in the Web perspective.

Remember:

This product supports versions 1.0.2, 1.1x, 1.2x and 1.3x of the Apache Struts framework. Struts version 1.0.2 and 1.1.x are supported when an existing project is imported into your workspace. On project creation, select the Struts versions 1.2 or 1.3 facets.

To create a Struts enabled Web project:

  1. In the Enterprise Explorer view, right-click and select

    New | Other | Dynamic Web Project | Next. The New Dynamic Web Project wizard opens.

  2. In the Project name field, enter the name of your Web project.

  3. Select a Target Runtime from the drop down list. This field will be disabled if you previously created a project and set a target runtime.

  4. In the Configurations drop down list, select

    Struts v1.3 Project. The project configuration automatically selects the facets required by your Struts project. Click Next.

    Note: If you do not see the Struts Project option, click

    Modify. On the Project Facets page of the wizard, select the

    Struts project Facet. The wizard will prompt you to select any other required dependent facets. Click OK.

  5. Click Finish.

For more information on creating a dynamic Web project, refer to Creating dynamic Web projects.

If you have a dynamic Web project without Struts support, you can add Struts support.