title: Spring security tags in sitemesh decorator
body: <p>I want to use a few tags of the spring security tag library inside the decorator file of site-mesh. However content inside these tags is never shown. Can anyone tell me why this is?</p>
  
  <p>Code:</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" 
     "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"&gt;
  
  &lt;%@taglib prefix="decorator" uri="http://www.opensymphony.com/sitemesh/decorator" %&gt;
  &lt;%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %&gt;
  &lt;%@taglib prefix="sec" uri="http://www.springframework.org/security/tags" %&gt;
  
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;!--HTML--&gt;
       &lt;form id="login_form" method="post" action="&lt;c:url value='j_spring_security_check'/&gt;"&gt;
        &lt;sec:authorize access="isAuthenticated()"&gt;
         &lt;p&gt;profile&lt;/p&gt;
         &lt;p&gt;messages&lt;/p&gt;
        &lt;/sec:authorize&gt;
        &lt;sec:authorize access="isAnonymous()"&gt;
  
         &lt;!--A Login form --&gt;
        &lt;/sec:authorize&gt;
       &lt;/form&gt;
  &lt;!--More HTML --&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Both block are not shown for some reason. </p>