Tuesday April 12, 2005
Loading Twitter updates 
Follow me on Twitter

Use SiteMesh to decorate multiple webapps Did you know it's possible to decorate multiple webapps with the same SiteMesh decorator? I learned how to do this from the SiteMesh mailing list:
- Put sitemesh.jar in your container's classpath. You could put it into each webapp's WEB-INF/lib, but it looks like there's problems with that.
- Create and deploy a webapp that contains the common decorator.
- In each webapp's decorators.xml, add a "webapp" attribute to point to the webapp you deployed in Step 2.
<decorators> <!-- load decorator from a different web-app deployed in the server --> <decorator name="main" webapp="some-other-webapp" page="/decorators/main.jsp"> <pattern>/*</pattern> </decorator> </decorators>
Try to do *that* with Tiles.
Posted in Java
at Apr 12 2005, 10:05:19 AM MDT
12 Comments
Search This Site
Recent Entries
- My What's New in Spring 3.1 Presentation
- Twitter's Open Source Summit: Bootstrap 2.0 Edition
- Refreshing AppFuse's UI with Twitter Bootstrap
- 2011 - A Year in Review
- Upgrading AppFuse to Spring Security 3.1 and Spring 3.1
- What have I been working on at Taleo?
- Our Engaging Trip to Paris and Antwerp
- My HTML5 with Play Scala, CoffeeScript and Jade Presentation from Devoxx 2011
- Deploying Java and Play Framework Apps to the Cloud with James Ward
- PhoneGap for Hybrid App Development