Thanks Daniel. My reason for this is to have the regular blogs HTML be completely included, but then to have a system wide header that cannot be tampered with. I beleive with SiteMesh I can accomplish this. Thanks.

Matt

Daniel Campagnoli wrote:

Hi Matt,

The key parts with the SiteMesh integration in Tomcat, provided you want the actual decorator in another web app, is to have the crossContext="true" attribute in the roller.xml <Context displayName="Roller" docBase=".." path="/roller" crossContext="true">

Its also neccassay to have the sitemesh.jar in the tomcat/common/lib and not in each web application.

In my roller decorator.xml I have
<!-- load decorator from a different web-app(main) deployed in the server --> <decorator name="main" webapp="main" page="/decorators/blogDecorator.jsp">
        <pattern>/*</pattern>
    </decorator>

Regards,
Daniel

Hi Daniel. I would be interested in more info on your sitemesh integration, we've been looking at how to provide a constant header across all themes and I hadn't thought about using SiteMesh for it. Nice work!

-Matt

Reply via email to