title: How to use an enum in Struts html:select tag
body: <p>I am currently trying to create a <code>html:select</code> tag from an enum so it could be set in a specific object:</p>
  
  <pre><code>class someClass {
      SomeEnum someProperties = null;
      public getSomeProperties() { return someProperties; }
      public setSomeProperties(SomeEnum e) { someProperties = e; }
  </code></pre>
  
  <p>The JSP with Struts tags:</p>
  
  <pre><code>&lt;html:select name="someForm" property="someInstance.someProperties" &gt;
     &lt;html:option value="${someEnum.STANDARD}"&gt;&lt;bean:message key="i18nkeystd"/&gt;
     &lt;html:option value="${someEnum.PREVENTIVE} "&gt;&lt;bean:message key="i18nkeyprev"/&gt;
  &lt;/html:select&gt;
  </code></pre>
  
  <p>But I am currently getting a "Cannot invoke someClass.setProperties - argument type mismatch" exception.</p>
  
  <p>Is there a way to use an enum in a Struts select tag.</p>