Struts - First Steps
(Web Tutorial)
by Michael Thomas
Struts Home Page
(Old
Tutorial - go to
New Tutorial)
Download & Install Struts - (Ex: Struts1.2.8
& Tomcat 5.5
on 12/23/05)
- Goto:
http://apache.org/
- Click on the “Struts” project.
- Click on “binaries” under Download.
- Click on the link "Struts x.x.x" link under General Availability
(GA) Releases.
- Under Binaries, download the
struts-x.x.x-bin.zip
file (~13meg).
- Move the zip file to the root directory
of your Tomcat install:
Ex: C:\Program Files\Apache Software Foundation\Tomcat 5.5\
- Extract the zip file maintaining the
file structure.
(Ex: Tomcat 5.5\struts-1.2.8-bin etc...)
Note: To
use these files you will copy the ones you need into your web apps
"WEB-INF\lib" directory.
- Make sure Tomcat is running.
http://localhost:8080 - if not, the
start the Tomcat service.
- Install the Struts Webapps:
- Struts Webapps: Copy the files
into your Tomcat "webapps"
directory
Ex:
C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps
- Struts EL (Expression Language) Webapps: Copy the files in the directory "webapps"
to
C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps
- Stop the "Apache Tomcat" service (Start, Control Panel,
Administrative Tools, Services).
- Delete the .war files that you copied above except for "struts-blank.war"
- Start the "Apache Tomcat" service.
Test your Install
- Example web apps: (war = web application archive)
Other Notes
- Errors
- HTTP Status 503 - This application is not currently available.
Solution: Go to the Tomcat Manager and see if the web app is running.
Miscellaneous Notes
Struts Classic
Struts Shale Framework - leverages JavaServer Faces (JSF).
Struts Action Framework - original struts taglib leveraging JavaServer Pages (JSP).
JSTL - JavaServer Pages Standard Tag Library
JSFL - JavaServer Faces Tag Library
EL - Expression Language
Struts Subprojects (note: Classic Struts – I think has all
of the subprojects).
Applications
BSF Scripting
Core
EL
Flow
JSF Integration