title: How should I populate the page heading in my Sitemesh 3 template?
body: <p>I'm using Sitemesh 3 and Freemarker with my Spring MVC application.
  Freemarker page output is passed to Sitemesh for application of a JSP decorator (will be FTL once I get my config sorted out - I have another SO question about that - as yet unanswered).</p>
  
  <p>I'd got Sitemesh 3 applying the body to the template correctly, now I'd like to add to my setup so an FTL view can set a property that would be rendered in the page heading.</p>
  
  <p>Sitemesh (JSP) template/decorator - this is producing correct output, except for the variable content heading:</p>
  
  <pre><code>    &lt;div id="mainWrapper"&gt;
      &lt;div id="content"&gt;
          &lt;div id="contentheading"&gt;&lt;sitemesh:write property="page.heading"&gt;&lt;/sitemesh:write&gt;&lt;/div&gt;
          &lt;div&gt;
              &lt;sitemesh:write property='body'/&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>What do I need to do in my .ftl in order to create some property that would be rendered in the div#contentheading element?</p>
  
  <p>I have a Java config for sitemesh using a custom filter implementation:</p>
  
  <pre><code>public class SitemeshFilter extends ConfigurableSiteMeshFilter {
  @Override
  protected void applyCustomConfiguration(SiteMeshFilterBuilder builder) {
      builder.setMimeTypes("text/html", "application/xhtml+xml");
      builder.addDecoratorPath("/*", "/WEB-INF/templates/page.jsp");
    }
  }
  </code></pre>
  
  <p><strong>Please note I am using Sitemesh 3</strong></p>