title: Advanced templating with jsp and sitemesh
body: <p>Here's what i am trying to do:</p>
  
  <p>I have a main template with header, menubar, body and footer. The body is replaced by the actual page called with the help of sitemesh like this:</p>
  
  <pre><code>&lt;div class="main"&gt;
    &lt;decorator:body /&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Same for the title etc.</p>
  
  <p>My problem is with the menubar: i would like to declare the content of the menubar in the actual page. The menus changes in every page, but i don't want to duplicate the layout of the menubar in every page.</p>
  
  <p>My tools are JSP, Sitemesh and Spring MVC 3.</p>
  
  <p>Is it possible? And if it is, how?</p>