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:
- The model maintains the data and the business logic in the
application. Since this tutorial does not use a database, and the only data
is entered by the user, there is no model in this tutorial.
- The view is the interface that displays information to the
user. In this tutorial, the view is composed of two Web pages that collect
data from the user and display results to the user.
- The controller handles events in the application. In this
tutorial, the controller is composed of an action mapping and a form bean
that work together to process the information that the user enters.
To create
a new Struts-based Web project:
You can see the new Struts Web project in the Enterprise Explorer.
A corresponding Web diagram opens.
Tip: Select the Welcome to the
Web Diagram Editor object on the Web diagram, and then press the Delete key
to remove the object.