title: Spring Security switch case in JSTL Tags
body: <p>Is there a way to convert a jsp code of the form </p>
  
  
  
  <pre class="lang-xml prettyprint-override"><code>&lt;security:authorize access="hasRole('ROLE_USER')"&gt;You're an user&lt;/security:authorize&gt;
  &lt;security:authorize access="hasRole('ROLE_ADMIN')"&gt;You're an admin&lt;/security:authorize&gt;
  &lt;security:authorize access="hasRole('ROLE_SADMIN')"&gt;You're a superadmin&lt;/security:authorize&gt;
  </code></pre>
  
  <p>to another form, similar to the following (doesn't work)?</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;c:choose&gt;
    &lt;c:when test="hasRole('ROLE_USER')"&gt;
      You're an user
    &lt;/c:when&gt;
    &lt;c:when test="hasRole('ROLE_ADMIN')"&gt;
      You're an admin
    &lt;/c:when&gt;
    &lt;c:when test="hasRole('ROLE_SADMIN')"&gt;
      You're a superadmin
    &lt;/c:when&gt;
    &lt;c:otherwise&gt;
      You have no relevant role
    &lt;/c:otherwise&gt;
  &lt;/c:choose&gt;
  </code></pre>
  
  <p>More precisely, is there a way to substitute this Spring Security taglib functionality with JSTL tags?</p>