The Layout Tag Library package has examples located in the ~/examples directory.
These examples must be deployed in a Java Servlet 2.2 compliant container as the default context.
The details of that will depend on your server.
The following directions apply to Tomcat
version 3.3.1 starting from the standard "out-of-the-box" configuration.
- Copy the example.war file to the
%TOMCAT_HOME%/webapps directory.
- Add a file apps-example.xml to the
%TOMCAT_HOME%/conf directory.
This file should contain:
<?xml version="1.0" encoding="ISO-8859-1"?>
<webapps>
<Context path=""
docBase="webapps/example"
reloadable="true"
trusted="false" >
</Context>
</webapps>
- Restart tomcat. You should see debug messages from tomcat telling you that it is
deploying
example.war .
Once you have the example up and running look at it with a web browser.
It should be available at http://localhost:8080/layout.
In the directory listing there are a number of JSP pages that you can display. Match the HTML output
against the files found in the war file.
|