Java/Spring/Spring Applications
Содержание
Spring Countries sample application
Spring Image Database sample application
Spring JPetStore sample application
Spring minimal web application
Spring PetClinic sample application
Spring Tiles Example
Web Frameworks: Spring
/*
Beginning JavaServer Pages
Vivek Chopra, Jon Eaves, Rupert Jones, Sing Li, John T. Bell
ISBN: 0-7645-7485-X
*/
Chapter 18 - Examples Readme.
=================================================================
These instructions assume you have set up Ant and Tomcat on your computer.
1. Extract the contents of this zip file into a directory on your computer, for example
C:\ch18-spring-base.
2. Modify the C:\ch18-spring-base\build.xml file as follows:
a. Modify the value of the catalina.home property to reflect the location of Tomcat on your computer.
b. Modify the value of the manager.url property to reflect the URL of the manager application the Tomcat instance you will be deploying this project too.
c. Modify the values of the manager.username and manager.password properties to reflect the correct values for your instance of Tomcat.
3. The build.xml file contains references to resources you need to have installed on your computer. The
script stores a reference to the location where you installed these resources. Sometimes the directory
structure of an installation can change from version to version. If you choose to use a different version
to that recommended in the book, please ensure that the build.xml file looks in the appropriate directory
for the resources it needs. For instance the script stores the location of the Jakarta Taglibs on your
computer with:
<property name="jstl.home" value="c:/java/tools/jakarta-taglibs"/>
And further on in the script it uses this location to find the resources it needs:
<property name="jstl.jar" value="${jstl.home}/standard/lib/jstl.jar"/>
<property name="standard.jar" value="${jstl.home}/standard/lib/standard.jar"/>
The second set of properties assumes the directory structure of where the resources are located. If youse a different version than what is recommended this location may be different.
You will need to modify the build.xml to suit your computer in the following ways:
a. Change the value of the jstl.home property to reflect the location of Jakarta Taglibs.
b. change the value of the spring.home property to reflect the location of the Spring Framework 1.0.
3. Start Tomcat.
4. Open a DOS prompt or Unix command shell to the directory containing the build.xml file (C:\ch18-spring-base\).
5. Type the following at the prompt:
ant install
6. The application should now be available for browsing at http://localhost:8080/spring-base