Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Tip

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 complets the steps below and skip straight to Start Using SiteMesh in 10 minutes. Best of all, no install necessary, just unzip and run.

Demo Web Application

...

Minutes.

Setup Web Application

Setup your web application with your favourite JEE IDE such as Eclipse or the Spring Tool Suite.

If you are new to JEE development and plan to follow along with the Start Using SiteMesh in 10 Minutes tutorial, use the context root of cafe. The demo is about a fictional Café in Aix-en-Provence called Café Mirabeau.

Install SiteMesh Manually

...

Add the following to WEB-INF/web.xml within the <web-app> tag,

Code Block
languagexml

<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>

...