title: JSP: accessing enum inside JSP EL tags
body: <p>My java enum looks like this:</p>
  
  <pre><code>public enum EmailType { HOME, WORK, MOBILE, CUSTOMER_SERVICE, OTHER }
  </code></pre>
  
  <p>In JSP, I am trying to do sth like below, which is not working.</p>
  
  <pre><code>&lt;c:choose&gt;
            &lt;c:when test="${email.type == EmailType.HOME}"&gt;(Home)&lt;/c:when&gt;
            &lt;c:when test="${email.type == EmailType.WORK}"&gt;(Work)&lt;/c:when&gt;
  &lt;/c:choose&gt;
  </code></pre>
  
  <p>After googling, I found these links: <a href="https://stackoverflow.com/questions/163407/enum-inside-a-jsp">Enum inside a JSP</a>. But, I want to avoid using scriplets in my JSP. How can I access the java enum inside EL tag and do the comparision?? Please help.</p>