title: How to use Java ENUM with <form:select>
body: <p>I'm trying to use the following ENUM inside my edit content .jsp using the <code>&lt;form:select&gt;</code> tag and can't find an example on how to do this.  </p>
  
  <pre><code>public class Content implements Serializable {
      public enum Paperless { 
          NONE(null, ""),
          EDELIVERY_RECOMMENDED("EDELIVERY_RECOMMENDED", "Recommend eDelivery"),
          EDELIVERY_REQUIRED("EDELIVERY_REQUIRED", "Require eDelivery"),
          EDELIVERY_REQUIRED_JUSTIFICATION("EDELIVERY_REQUIRED_JUSTIFICATION", "Require eDelivery w/out justification");
  
          private String name;
          private String description;
          Paperless(String name, String description) {
              this.name = name;
              this.description = description;
          }
          public String getName() {
              return this.name;
          }
          public String getDescription() {
              return this.description;
          }
      }
  ....
  </code></pre>
  
  <p>The above content object is passed to my .jsp file as <code>${content}</code>.</p>
  
  <p>I'm trying to do</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;form:select path="content.Paperless"&gt;
      &lt;form:options items="${content.Paperless}" itemLabel="name"/&gt;
  &lt;/form:select&gt;
  </code></pre>
  
  <p>It's throwing an exception....
  <code>org.springframework.beans.NotReadablePropertyException: Invalid property 'content' of bean class [com.fettergroup.cmt.model.Content]: Bean property 'content' is not readable or has an invalid getter method: Does the return type of the getter match the parameter</code></p>
  
  <p>I'm misunderstanding something about this but I can't pinpoint which one... </p>