< Previous | Next >

 

 

Lesson 1: Create a Struts enabled Web project

 

+

Search Tips   |   Advanced Search

 

Use this lesson to learn how to create a dynamic Web project that is enabled for Struts.

Struts is an open-source software framework for building Java Web applications. Struts uses the model-view-controller (MVC) design pattern for application development. The MVC design pattern helps you to create and maintain complex Web applications by separating the application into three parts:

To create a new Struts-based Web project:

  1. In the menu bar, select...

    File | New | Dynamic Web Project

    ...to open the

    New Dynamic Web Project wizard.

  2. In the

    Project name field, type DayOfWeek.

  3. In the Target runtime field, select the runtime that you have configured.

    If you have not configured a runtime environment, click New to open the New Server Runtime Environment wizard.

    For this tutorial, you can use one of the following servers:

    This field will be disabled if a target runtime had been previously set. To enable this field, you can do one of the following:

    • Specify a new EAR Project Name then select a Target Runtime.
    • Select an existing EAR project from the list that uses the target runtime that you want to use.

  4. In the Configuration list, select Struts v1.3 Project, then click Finish.

You can see the new Struts Web project in the Enterprise Explorer.

 

Lesson checkpoint

You learned to create a Struts enabled Web project and select a runtime environment.

< Previous | Next >