title: SiteMesh 2.4.2 + Spring MVC 3.0.4 - using multiple decorators
body: <p>I'm developing an application that uses SiteMesh 2.4.2 together with Spring MVC.</p>
  
  <p>I'd like to have two decorators, e.g. :</p>
  
  <pre><code>&lt;decorators&gt;
    &lt;decorator name="special" page="/WEB-INF/jsp/specialtemplate.jsp"&gt;
      &lt;pattern&gt;/something/*&lt;/pattern&gt;
    &lt;/decorator&gt; 
  
    &lt;decorator name="main" page="/WEB-INF/jsp/pagetemplate.jsp"&gt;
      &lt;pattern&gt;/*&lt;/pattern&gt;
    &lt;/decorator&gt;
  &lt;/decorators&gt;
  </code></pre>
  
  <p>The problem is that only the main decorator is applied (also for pages /something/...)</p>
  
  <p>How should I properly configure the decorators, so that for pages from /something/... the dedicated one is used?</p>
  
  <p>the urls I'd like to use the specific template looks like <a href="http://server/context/something/etc" rel="nofollow">http://server/context/something/etc</a></p>