title: Struts2 <s:select list=""> not working dynamically
body: <p>I am using Struts2.</p>
  
  <pre><code>&lt;s:iterator value="empReportFields" var="empReportField" 
      &lt;s:select name="%{#empReportField.fieldName}" list="%{#empReportField.listName}" listKey="id" listValue="name" cssClass="search" headerValue="All" headerKey="All" /&gt;                                           
  
      &lt;s:property value="#empReportField.listName" /&gt;
      // Here it is displaying proper list name                   
  &lt;/s:iterator&gt;
  </code></pre>
  
  <p>I am fetching out these data from my db. Now I am displaying specific list in select box (<code>&lt;s:select list="&lt;ListName&gt;" /&gt;</code>) which is stored in column of my table (Database).</p>
  
  <p>Normally it runs like.</p>
  
  <pre><code>&lt;s:select name="emp" list="locationList" 
            listKey="id" listValue="name" 
            headerValue="All" headerKey="All" /&gt;
  </code></pre>
  
  <p>It will work well.</p>
  
  <p>But I find simple select box with no list value in it. So what is the actual problem??</p>
  
  <p>In short I want to call list dynamically.</p>