Running SiteMesh on AppEngine

Does SiteMesh work on Google AppEngine (Java preview)?

Short answer: Yes.

Longer answer: Yes. It does. So long as you check 2 things…

1. Upgrade

You need SiteMesh version 2.4.2 or greater. Earlier versions do not support AppEngine.

Download here

2. Disable static file serving

If you want decorators to be applied to static content (e.g. to .html files), the following needs to be added to WEB-INF/appengine-web.xml:

<static-files> 
  <exclude path="**"/> 
</static-files>

This forces the static resources to be served by the Servlet engine, rather than a separate static web-server. Without this, the files served by the static web server will not be decorated.

Happy AppEngining.

  • Trackback are closed
  • Comments (2)
    • Rainer Hermanns
    • April 24th, 2009

    Joe,

    great news, thanks for assembling the release.
    Could you please release SiteMesh to the maven repositories as well. The Struts2 SiteMesh plugin requires this release to be AppEngine compliant.

    cheers,
    Rainer

    • John
    • April 25th, 2009

    Thank you for the tips and the patch. I can’t wait to try it!

Comments are closed.
%d bloggers like this: