title: Struts2 - How access a nested enum
body: <p>I'm creating a <code>&lt;s:select&gt;</code> tag, usually i pass the full path of an enum as follows:</p>
  <pre><code>&lt;s:select 
      name=&quot;name&quot; 
      label=&quot;%{getText('myClass.label')}&quot;
      list=&quot;@fullpath.MyEnum@values()&quot; 
      listValue=&quot;%{getText(name())}&quot;  
      headerValue=&quot;%{getText('seleziona')}&quot; 
      headerKey=&quot;&quot; 
  /&gt;
  </code></pre>
  <p>How do i access a nested enum? My current class is:</p>
  <pre><code>public class myClass{
      //some fields
      public enum MyEnum{
          //fields
      }
  }
  </code></pre>
  <p>I tried doing <code>list=&quot;@fullpath.MyClass.MyEnum@values()&quot;</code> but it doesn't work.</p>