Tutorial: Building a Web Application with Struts
This tutorial describes how OTN developers built a Web application for shop owners and
customers of the Virtual Shopping Mall (VSM) sample application. OTN developers used
Oracle9i JDeveloper and the Jakarta Project's Struts framework to build the application.
3. Required Software
The Jakarta Project's Struts framework, version 1.1b2, from Apache Software
Organization is an open source framework for building web applications that integrate
with standard technologies, such as Java Servlets, JavaBeans, and JavaServer Pages.
Struts offers many benefits to the web application developer, including Model 2
implementation of Model-View-Controller (MVC) design patterns in JSP web applications.
The MVC Model 2 paradigm applied to web applications lets you separate display code
(for example, HTML and tag libraries) from flow control logic (action classes).
Following is a brief overview of the MVC Model 2 design pattern. For complete
information about how Struts implements the MVC design patterns, see the Introduction
to the Struts User's Guide on the Jakarta Project's Web site:
● The Model portion of an MVC-based system typically comprises JavaBean classes
that define the internal state of the system; they also specify the actions that can
be taken to change that state. If you use the BC4J data access framework, this
layer implements the model entirely for you. Otherwise, you will need to create the
classes that implement your model.
● The View portion of a Struts-based application is generally constructed using JSP
technology. JSP pages can contain static HTML (or XML) text called "template
text", plus the ability to insert dynamic content based on the interpretation (at page
request time) of special action tags. The JSP environment includes a set of custom
JSP tag libraries (suc