1
The Chain Of Responsibility Adapter README File
2
$Id: README.txt,v 1.2 2003/11/27 23:01:22 martinc Exp $
11
CONTENTS OF THIS RELEASE:
12
========================
18
LICENSE.txt -- The Apache Software License, under which all software
19
included in this bundle is licensed.
21
README.txt -- This README file.
23
build.xml -- Ant build script (only required for building from
26
build.properties.sample
27
-- Sample "build.properties" file that may be customized
28
(only required for building from source).
34
api/ -- Javadocs for the classes included in the Struts Chain
35
of Responsibility library (org.apache.struts.chain.*).
41
struts-chain.jar -- The compiled classes for the Chain Of Responsibility
48
conf/ -- Source files for the JAR file's manifest.
50
example/ -- Source files for the demonstration web application.
52
java/ -- Source files for the Chain of Responsibility library
53
classes (only required for building from source).
54
The base package is "org.apache.struts.chain".
60
example/ -- JSP and web application configuration files for the
61
demonstration web application.
67
struts-chain.war -- Executable version of the demonstration
71
RUNNING THE EXAMPLE APPLICATION:
72
===============================
74
The following steps are required to deploy and run the example application
75
(struts-chain.war) included in this distribution:
78
Install A Java Development Kit:
79
------------------------------
81
The Struts Chain Of Responsibility library requires a Java Development Kit (not
82
the Java Runtime Environment), version 1.3 or later. It was tested against
83
Sun's JDK 1.4.2 release, available at:
85
http://java.sun.com/j2se/
88
Install A Servlet/JSP Container:
89
-------------------------------
91
The Struts Chain Of Responsibility library requires a container that supports
92
Servlet 2.3 (or later) and JSP 1.2 (or later). Any J2EE 1.3 (or later)
93
application server should also work. You must acquire and install such
94
a container in order to execute the example application, following that
95
container's standard installation instructions.
98
Install A Struts 1.2 Nightly Release:
99
------------------------------------
101
The Struts Chain of Responsibility library requires a recent nightly build of
102
the head branch of the Struts CVS repository (i.e. the code being used for the
103
Struts 1.2 development track).
105
http://jakarta.apache.org/site/binindex.cgi
107
You will want to become familiar with the operation of the standard example
108
web application (struts-example.war), if you are not already.
111
Deploy And Execute The Sample Application:
112
-----------------------------------------
114
Follow the standard procedures for your container to deploy a web application
115
that is packaged as a WAR file. For example, you can deploy on Tomcat by
116
simply copying the struts-chain.war file into the "webapps"
117
subdirectory of your Tomcat installation, and restarting Tomcat.
119
To execute the sample application, access it with a web browser under URL to
120
which it was installed. This will usually be something like:
122
http://localhost:8080/struts-chain/
125
USING THE CHAIN OF RESPONSIBILITY LIBRARY IN YOUR OWN APPLICATIONS:
126
==================================================================
131
BUILDING FROM SOURCE:
134
If you wish, you can build the Struts Chain Of Responsibility library, and the
135
sample application, from the source code included in this distribution.
139
Install An Ant Distribution:
140
---------------------------
142
The provided build.xml script requires Ant, version 1.5.2 or later. You can
145
http://ant.apache.org/
147
Install this environment as described in the Ant documentation, and ensure
148
that Ant's "bin" directory is on your PATH.
151
Configure Your Build Properties:
152
-------------------------------
154
Copy the "build.properties.sample" file in the top level directory to a file
155
named "build.properties", and customize the paths that are specified there.
161
The simplest way to build is to execute:
165
to recreate the entire distribution in the "dist" subdirectory. Use the
166
"ant -projecthelp" command to see what other targets are available.