EQUIP2 WebApp Index
Chris Greenhalgh, 2007-01-29; last updated 2007-10-24
Introduction
This CVS module houses templates, documentation and samples for
using EQUIP2 in Web applications based on J2EE & Spring Framework.
The top-level directory (../) contains Java source
and JSPs which are generally useful in EQUIP2 web applications,
currently:
- the forms-based dataspace interface (with bulk XML/Hessian/CSV
upload/download), and
- database ID allocation utilities
See build instructions, below.
The samples directory contains:
More documentation
Minimal web application:
Tutorial documents
General/overview documents:
General J2EE/Spring:
EQUIP2:
Application example (includes use of EQUIP2):
... [more to follow]
Source
This CVS module houses templates, documentation and samples for
using EQUIP2 in Web applications based on J2EE & Spring Framework.
The top-level directory (../) contains Java source
and JSPs which are generally useful in EQUIP2 web applications,
currently:
- the forms-based dataspace interface (with bulk XML/Hessian/CSV
upload/download), and
- database ID allocation utilities
NB: Normally the dependencies should
include a pre-built version of these common controllers & jsps (equip2webdb.jar & equip2webdb_jsp.jar) and you
can go straight to building a web application.
Getting EQUIP2 WebApp
EQUIP2 webapp is in the EQUIP sourceforge CVS accessible as:
CVSROOT: :pserver:anonymous@equip.cvs.sourceforge.net:/cvsroot/equip
Module: equip2webapp
It is licensed under the (so-called) new or modified BSD Open Source
license.
EQUIP2 itself is in the same repository in the module 'equip2'. The dependencies are
in the same repository in the module 'dependencies'.
Snapshots should be available from the project
download page.
Preparation
Download and install/unpack the dependencies from the dependencies
module (see previous section). The default installation expects these
to be in the directory ../dependencies/lib
(as configured in build.properties).
Alternatively you may assemble the dependencies directly (e.g. if you
require more recent versions):
- EQUIP2 core libraries for J2EE (if you are build EQUIP2 yourself,
use its ant target j2ee -
see EQUIP2_Installation_Guide.html):
- equip2.jar,
equip2hibernate.jar, equip2tools.jar, equip2taglib.jar
- Spring Framework -
we are currently working with version 1.2.8, including
- spring.jar,
lib/j2ee/servlet-api.jar, lib/j2ee/jsp-api.jar,
lib/log4j/log4j-1.2.13.jar, lib/jakarta-commons/commons-fileupload.jar,
lib/quartz/quartz*.jar
- Hibernate Core 3.1.3
(3.1.1 is known NOT to work), including
- hibernate3.jar,
antlr-*.jar, cglib-*.jar, asm.jar, commons-logging.jar, jta.jar,
dom4j.jar, c3p0*.jar
- JSTL 1.1 taglib, e.g. taglib Standard-1.1 (standard.jar &
jstl.jar) from Apache
Taglibs (depending on your version of Spring you may have an older
version; 1.2.7 certainly does).
Java SDK 1.5+ and Apache Ant
are required.
In addition you may require Apache Xalan,
although in theory the XSL support in Java 1.5+ should be sufficient
(but we have had occasional problems).
The documentation and build files currently assume that you are
using:
If you want to use another database and/or J2EE container then you will
need to make changes as appropriate to build and configuration files.
Building
To compile the common support library:
- edit ../build.properties to
reflect
- the location of the dependencies (dependencies.dir)
- if required (i.e. JDK XSL doesn't work) the location of Xalan (xalanhome).
- if you are using a different version of the external dependencies
(Spring, Hibernate, etc.) then you may need to change the classpath(s)
in build.xml, especially classpath_equip2spring
- build dist/equip2webdb.jar
& dist/equip2webdb_jsp.jar
(the JSPs for the web database interface):
> ant
- Copy these into the common dependencies directory (assuming you
want to replace whichever version(s) were there). Otherwise you need
not have bothered :-)
Now move on to the the minimal and/or tutorial web applications...
Changes
2007-01-29
- Document created
- Minimal web app created
- Started tutorial web app
- added web form link
2007-02-02
- clarified config (jars); updated docs organisation from tutorial
- added login page
- added application example structure link
2007-02-06
2007-06-12
2007-10-24
- updated dependency/build information
2007-10-25
- note on prebuilt; remove mysql/tomcat refs