LESSON I - Introduction - Your First Struts App
The application you are going to create mimics entering an employee into a database. The
user will be required to enter an employee's name and age.
Concepts introduced in Lesson I:
Setting up your environment
Data Transfer Object
ActionForm
web.xml
struts-config.xml
ApplicationResources.properties
BeanUtils
Tag usage
The steps (see left menu) in this lesson will walk you through building all of the necessary
components for this small application. If you want to download the complete application you
can do so. (You should be able to plop this war file into your application server webapps
directory and it should work fine).
Download rr_lesson_1 application.war
Begin lesson now by clicking
START
.
LESSON I - 1 - Install Tomcat
Download and install the latest stable version of Tomcat:
You can download Tomcat here:
http://jakarta.apache.org/site/binindex.cgi
Setting up Tomcat is not difficult but is out of the scope of this tutorial. (Most of these basic
tutorials should run fine on Tomcat versions 4.0.x and above or any other decent application
server).
LESSON I - 2 - Create Application Directory
Create the web application directory:
Create the directory "rr_lesson_1"in the {tomcat}/webapps/ directory
(where {tomcat} equals the root directory of your Tomcat installation).