title: populate select box on selecting another selectbox
body: <p>I have two select boxes.Both of them should be populated from database.Second select box should be populated based on the selected option in the first select box.Database connectivity is success and i am able to populate the first select box.But i dont know how to populate second select box based on the first.code i used to populate first select box is,</p>
  
  <pre><code>        &lt;select class="weekcombo"&gt;
          &lt;%
          List list= new DataManager().getlist();
          for(int i = 0; i &lt; list.size(); i++) {
          out.write("&lt;option value=\""+ list.get(i)+ "\"&gt;"+ list.get(i));
          }
          %&gt;
  </code></pre>
  
  <p>I dont know whether to use servlet or something else for this.</p>