title: Remember dropdown selection in a jsp file
body: <p>I have a dropdown list in a jsp file</p>
  
  <pre><code>&lt;select name="PID" id="PID" style="min-width: 100px;" &gt;
  
  &lt;% 
  for(somelist pm : List) { %&gt;
  &lt;option value="&lt;%=pm.getsmthing()%&gt;" selected&gt;&lt;%=pm.getName()%&gt;&lt;/option&gt;
  &lt;option  value="-1"&gt;Select a Property&lt;/option&gt;
  </code></pre>
  
  <p></p>
  
  <p>This is inside a form. I want to remember the selected item name after submission of the form.</p>