Chapter 2. Setting up the Tutorial

This document expects that you will have extracted the full Tapestry distribution to your C: drive [1]

This will have created a directory C:\Tapestry-x.x and, beneath it, several more directories. [2]

The source code for the Tutorial is distributed as a JAR file, src/examples-src.jar. A precompiled WAR file, lib/tutorial.war is included in the distribution.

The Tapestry distribution includes an Ant build file that allows the Tutorial to be directly executed. Ant release 1.5 is required.

From the Tapestry root directory, execute the command ant -emacs run-tutorial, which will launch the Jetty server for the Tutorial.

Once Jetty is running, you can access the Tutorials using the URL http://localhost:8080/tutorial .

Figure 2.1. Tutorial Index Page

Tutorial Index Page


[1] If you are using Solaris or another non-Windows operating system, you're expected to be savvy enough to translate to a sensibly constructed file system.

[2] The three numbers are the release number. At the time of this writing, the release was 2.2, but this is constantly changing. Simply adjust the actual pathname to reflect the release of Tapestry you downloaded.