Did something similar in the past using Sitemesh
we have defined a new web application called skins-app, which has only a common header, footer, navigator, which all others need. Sitemesh is configured through a file called WEB-INF / decorators.xml in the skin application
webapp WEB-INF/decorators.xml.
, "" .
<decorator name="main" page="/decorators/layout.jsp" webapp="skins-app">
<pattern>/*</pattern>
</decorator>
include/exclude, webapp, - "". Sitemesh.