title: JSP drop down list | Page refresh
body: <p>This is how I have implemented the </p>
  
  <pre><code>&lt;select name="doctype" id="doctype" class="textarea" onchange="fillLabel()"&gt;
          &lt;%
          DocumentManager documentManager = new DocumentManager();
          List keyTypes  = documentManager.getAllKeyTypes();
          Iterator ite = keyTypes.iterator();
          while(ite.hasNext()){
              Object[] row = (Object[]) ite.next();
          %&gt;
          &lt;option value="&lt;%= row[1] %&gt;"&gt;&lt;%= row[0] %&gt;&lt;/option&gt;
          &lt;%}%&gt;
      &lt;/select&gt;
  </code></pre>
  
  <p>How do I persist the selected value when page got refreshed.</p>
  
  <p>Thanks.</p>