title: Load Spring Security Attribute into a JSP variable
body: <p>I would like to load a Spring Security attribute into a variable.</p>
  
  <p>Variables:</p>
  
  <ul>
  <li>Boolean <code>edit</code> provided in the <code>POST</code> body (loading works fine)</li>
  <li>Boolean <code>isSupervisor</code> should be true if the user has the role supervisor (I don't know how to load it into an accessible variable. I've tried many different approaches and it didn't work.)</li>
  </ul>
  
  <p><strong>Code:</strong></p>
  
  <pre><code>//set somehow the isSupervisor variable
  //var isSupervisor = hasRole('ROLE_SUPERVISOR')    
  &lt;c:if test="${edit} and not isSupervisor"&gt;
  ... do something
  &lt;/c:if&gt;
  </code></pre>