title: Unable to fetch data from db and set to a struts combo box
body: <p>I'm new to struts I'm finding it difficult to fetch data from the database and setting it in a combo box.</p>
  
  <p>I'm trying to </p>
  
  <ul>
  <li>Fetch data from the database</li>
  <li>Set it to combo box</li>
  <li>Populate my action class with the value selected in the combo box</li>
  </ul>
  
  <p><strong>My JSP:</strong></p>
  
  <pre><code>&lt;s:combobox name="news.appn" list="apptnList" value="Select" headerKey="-1" headerValue="--     selectyour Application--"&gt; &lt;/s:combobox&gt;
  </code></pre>
  
  <p>News is my pojo Class</p>
  
  <p>My action class has a list, "apptnList " which holds the values being fetched from the database.
  My pojo has a variable appn, which is supposed to holds the data from the combo box.</p>