Sitemesh is integrated with the Servlet technology via filters. Decorators (i.e. templates) are JSP files declared in a WEB-INF/decorators.xml file. These decorators rely on a specific JSP tag library:
<%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator" prefix="deco" %>
- <deco:body /> - Extracts the body content of the page to decorate
- <deco:head /> - Extracts the head section of the page to decorate
For more details about Sitemesh, see here.