title: test attribute in JSTL <c:if> tag
body: <p>I saw some code like the following in a JSP</p>
  
  <pre><code>&lt;c:if test="&lt;%=request.isUserInRole(RoleEnum.USER.getCode())%&gt;"&gt;
      &lt;li&gt;user&lt;/li&gt;
  &lt;/c:if&gt;
  </code></pre>
  
  <p>My confusion is over the "=" that appears in the value of the <code>test</code> attribute. My understanding was that anything included within <code>&lt;%= %&gt;</code> is printed to the output, but surely the value assigned to test must be a Boolean, so why does this work?</p>
  
  <p>For bonus points, is there any way to change the attribute value above such that it does not use scriptlet code? Presumably, that means using EL instead.</p>
  
  <p>Cheers,
  Don</p>