< Previous | Next >

Lesson 1: Create a Struts enabled Web project

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:
Tip: To learn more about Struts technology, visit http://struts.apache.org/.

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.
    Note: 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:
    • WebSphere® Application Server v7.0
    • WebSphere Application Server 6.x
    • An Apache Tomcat 5.x runtime server
    (For more information about configuring an Apache Tomcat server, refer to http://tomcat.apache.org/download-55.cgi.)
  4. In the Configuration list, select Struts v1.3 Project.
    Note: If Struts v1.3 Project is not displayed in the Configuration list, you can also enable Struts by adding the Struts facet to your project:
    1. In the Configuration section, click Modify . The Project Facets window opens.
    2. Select the Struts check box.
    3. In the Version column, ensure the Struts version is set to 1.3.
    4. Click OK.
  5. 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 >

Feedback