Installing SiteMesh into your web application consists of three steps,
Add the SiteMesh library file to WEB-INF/lib
.....
2,Add the SiteMesh filter to web.xml
<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>
3,Create a blank decorators.xml file
Create the a decorators.xml file in your WEB-INF directory,
<?xml version="1.0" encoding="UTF-8"?>
<decorators defaultdir="/decorators">
<decorator name="basic-theme" page="basic-theme.jsp"><!-- decorator page -->
<pattern>/data/*</pattern>
</decorator>
</decorators>