title: How can I build struts2 s:select list in JSP
body: <p>In struts2 I have some s:select list fields</p>
  
  <pre><code>&lt;s:select name="oneObj" id="ddlOne" list="oneList" 
  &lt;s:select name="twoObj" id="ddlTwo" list="{'0A','0B','1C','1Z'}"
  &lt;s:select name="thrObj" id="ddlThr" list=???"
  </code></pre>
  
  <p>So for the first, <strong><em>actionClass.getOneList()</em></strong> is called on the server to populate the list, and for the second the list is hardcoded.</p>
  
  <p>What I really want is for the third to generate the list <strong><em>IN</em></strong> the JSP for the page. The list will have 200 strings that can easily be built as an array in a <strong><em>for</em></strong> loop using Java or javascript. I don't want to generate the list in Java and have an attribute, getter, setter cluttering up my action class, since the list is NOT dynamic and isn't defined by data on the server (like <strong><em>one</em></strong>) and I don't want a static list using {} for 200 items (like <strong><em>two</em></strong>).</p>
  
  <p>Is there any way to do this? Can a javascript variable be used as this list? Can java code be used in the JSP to create this list?</p>
  
  <p>Also, what I could really use is a full description/syntax of what <strong><em>list</em></strong> can be. The official struts2 documentation says </p>
  
  <pre><code>list : `Iterable` source to populate from. If the list is a Map (key, value), the Map key will become the option 'value' parameter and the Map value will become the option body.
  </code></pre>
  
  <p>which doesn't show any syntax of what <strong><em>list</em></strong> can be. Is there some other doc that describes struts tags/attributes and using <strong><em>", $, #, {</em></strong>  to define this list?</p>