Shortcut: Don't have a development environment handy or know how to set one up? Download the "no install" SiteMesh Starter Kit which also includes this tutorial and the tutorial already completed the steps below and skip to Start Using SiteMesh in 10 minutes. Best of all, no install necessary, just unzip and run.Minutes.
Demo Web Application
If you plan to follow along the tutorial, you will want to setup your web application with the context root of cafe. The demo is about a fictional Café in Aix-en-Provence called Café Mirabeau.
Add the following to WEB-INF/web.xml within the <web-app> tag,
<filter> <filter-name>sitemesh</filter-name> <filter-class>com.opensymphony.sitemesh.webapp.SiteMeshFilter</filter-class> </filter> <filter-mapping> <filter-name>sitemesh</filter-name> <url-pattern>/*</url-pattern> </filter-mapping>