In this tutorial, you will learn to build a Struts-based Web application
using a Web diagram. A Web diagram is a file that helps you visualize the
flow of a Web application that is based on Faces or Strut.
This tutorial shows you how to create and test a simple Struts application
contains two Web pages, an action mapping, and a form bean. The application
features one Web page that takes a year, month, and date as input and manipulates
the data to compute the day of the week. If the input is valid, the computed
value is displayed on an output Web page; if the input is invalid, an error
message is displayed on the input page.
Learning objectives
This tutorial teaches
you how to create a simple Struts application, after which you will know how
to:
- Create a Struts project
- Edit a Web diagram
- Create and edit JSPs
- Add application logic
- Add ActionError tags to the input.jsp page
- Test a Struts application
This tutorial should take approximately 60 minutes to
finish. If you explore other concepts related to this tutorial, it could take
longer to complete.
Skill level
Advanced
Audience
Web application developers, Web UI designers
System requirements
To complete this tutorial
you must first have a runtime server configured. This tutorial will work with
the following servers:
- WebSphere® 6.0
- WebSphere 6.1
- Apache Tomcat 5.5
Prerequisites
To complete this tutorial, you
should be familiar with the following items:
- Basic Web design concepts, such as sites, pages, browsers, and servers
- Web page elements, such as tables, hyperlinks, forms, and images
- Editing HTML code for Web pages
- Workbench perspectives and views