Keel/Sitemesh integration
Shash Chatterjee <[email protected]>
| Newsgroups | gmane.comp.java.keel.devel |
|---|---|
| Message-ID | <[email protected]> |
app-sitemesh 1.0 is now checked in, Mavenized. There is no code in this to "integrate" anything, this just declares the dependencies needed so you can simply define a dependency on app-sitemesh in your Keel project's project.xml, do a "maven keel:maven" and away you go. The instructions, also included in app-sitemesh/project.xml: *This is the integration to include Sitemesh with Keel Webapps. To use this integration, copy the four web-* files from app-sitemesh/conf/client/webapp, and put these files in one of your application modules' conf/client/webapp directory, and uncomment the content. This will define the servlet configuration for sitemesh in the assembled web.xml. Create a src/webapp/WEB-INF directory in your Keel project (not the app-*, svc-* etc. modules, but the project). In it you need to put your sitemesh-decorator.tld and sitemesh-page.tld (in app-sitemesh/conf/client/webapp) files, as well as your sitemesh.xml and decorators.xml. Finally, create the decorators directory (or, whatever directory you choose for your decorators, as specified in your decorators.xml file) in your project's src/webapp directory, and put the JSPs defining your Sitemesh decorators in there. The Sitemesh examples are in app-sitemesh/conf/client/webapp/sitemesh-examples. That's it! Enjoy. * Shash