Tuesday April 12, 2005
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
11 Comments
Matt Raible is the Lead UI Architect at LinkedIn. The opinions on this site are mine, not my employers.
Search This Site
Recent Entries
- What's wrong with JSF
- Why such a busy week?
- New Passport in 9 Days
- EhCache Project Busy this Summer
- Spontaneous Stuff Weekend
- Awesome Birthday Present: A Kegerator
- Maven Plugin for Running Integration Tests against Multiple Containers
- Presenting Web Frameworks of the Future Tomorrow in Denver
- My OSCON Aftermath
- OSCON 2008 Wrapup