Installing Struts
•        You will probably have struts installed for you, but we will work through the installation so you can
recreate it on any machine you want to use.
•        Installing strut on most web servers is identical, but that isn’t a guarantee.
-        We will install it in Tomcat, a free open source web server from Apache that supports Servlets and JSP
with no modification.
-        You will need a minimum of JDK 1.2 or better and Tomcat 3.2 or later.
-        I assume you have Tomcat installed and know how to start it up.  The location of the Tomcat install
directory will be referred to as <TOMCAT_HOME>.  On the authors machine this is C:\Java\Tomcat.
•        Struts can be downloaded from http://www.apache.org/dist/jakarta/struts/binaries/ and more complete
documentation on installation and Struts in general is available at http://jakarta.apache.org/struts/index.html.
•        Unzip the struts zip file into a directory.  On the authors machine this was at C:\Java.
-        The zip file contained the directory Jakarta-struts 1.1-b3, this folder name is based on the version of
struts and may be slightly different in your download.
-        For the rest of the discussion this folder “C:\java\jakarta-struts 1.1-b3” will be referred to as
<STRUTS_HOME>.

•        To demonstrate how to install Struts and the artifacts needed to run struts we will create a new Struts
based web application called HelloStruts.
-        Create a folder in your <TOMCAT_HOME>\webapps dir called HelloStruts.
-        This webapp will need the typical sub folders, if you don’t know them follow along and add folders as
necessary for the install.
-        Copy all the jar files from <STRUTS_HOME>\lib to the
<TOMCAT_HOME>\webapps\HelloStruts\WEB-INF\lib folder.
-        Copy the validation-rules.xml file from <STRUTS_HOME>\lib to the
<TOMCAT_HOME>\webapps\HelloStruts\WEB-INF folder.
-        Create a web.xml file in the WEB-INF folder.  This is a typical web application configuration file; we
will modify it later to support struts.
-        Create a struts-config.xml in the WEB-INF file, this is a key file used to make URLs to actions (and
more).
-        Create a logging configuration file.  Called Commons-Logging.properties this file contains the following
single line.
org.apache.commons.logging.Log=
                          org.apache.commons.logging.impl.SimpleLog

-        Create a Resource Bundle file that will hold all text strings for the application (this supports I13n).  
This file will be called ApplicationResources.properties.
-        With these in place we can start creating a web site.  The following steps will walk through a simple
HelloWorld web site.
Installing Struts
Table of Contents
online learning aid.  Any attempts to copy, reproduce, or use for training is strictly prohibited.
Courseware
Training Resources
Tutorials