Repopulating database driven textbox on form
<p>I have a database driven textbox that needs to be repopulated when the user hits the back button (a back button that I have created on the form)</p>

<p>Currently, I am able to repopulate non database driven fields on the form using http sessions just fine. I cannot seem to apply to same logic to database driven fields.</p>

<p>The code on my jsp looks as follows:</p>

<pre><code>    &lt;td&gt;&lt;select name = "actionType" tabindex = "1" value="&lt;%if(session.getAttribute("actionType")== null) out.print(""); else out.print(session.getAttribute("actionType"));%&gt;"&gt;
        &lt;option&gt;--&lt;/option&gt;

        &lt;% for(int i=0; i&lt;actTypeDDL.size()-1; i++){ 
         String actType = actTypeDDL.get(i).toString();
         i++;
         String actTypeVal = actTypeDDL.get(i).toString();%&gt;

         &lt;option value=&lt;%=actTypeVal%&gt;&gt;
         &lt;%=actType%&gt;
         &lt;/option&gt;
         &lt;%
         } %&gt;
        &lt;/select&gt;&lt;/td&gt;
</code></pre>

<p>Any ideas?</p>
