title: Get enum value in JSP using JSTL
body: <p>I am trying to get enum value in JSP page but getting exception </p>
  
  <pre><code>org.apache.jasper.JasperException: javax.el.MethodNotFoundException: Method not found: class org.hibernate.collection.internal.PersistentSet.getFieldType()
  </code></pre>
  
  <p>package com.nfdil.loyalty.enums;</p>
  
  <pre><code>public enum FieldTypeEnum {
      TEXT_BOX("TEXT_BOX"), CHECK_BOX("CHECK_BOX");
  
      private String fieldType;
  
      private FieldTypeEnum(String fieldType) {
          this.fieldType = fieldType;
      }
  
      public String getFieldType() {
          return fieldType;
      }
  }
  </code></pre>
  
  <p>Code in JSP page :</p>
  
  <pre><code>&lt;c:when test="${programFuncFileds.getFieldType() == FieldTypeEnum.TEXT_BOX.getFiledType()}"&gt;                                                
  &lt;/c:when&gt;
  </code></pre>
  
  <p>I don't want to use any hard code. </p>
  
  <p>Got reference form here <a href="https://stackoverflow.com/questions/123598/access-enum-value-using-el-with-jstl">Access Enum value using EL with JSTL</a></p>
  
  <p>but my problem is not solved.</p>