title: How to retain selected value in a dropdown list in the same jsp page?
body: <p>I want that after submitting my form and then for some reason again forwarding to the same page, the selected option in the drop-down list should retain the selected value I entered first time. </p>
  
  <pre><code>&lt;form action="CitySelection" method="POST"&gt;
  
       &lt;select name="cityname" id="myselect" onchange="this.form.submit()"&gt;
           &lt;option value="england"&gt;england&lt;/option&gt;
           &lt;option value="france"&gt;france&lt;/option&gt;
           &lt;option value="spain"&gt;spain&lt;/option&gt;
       &lt;/select&gt;
  
  &lt;/form&gt;
  </code></pre>
  
  <p>How I can enhance my above code of form with this feature, any suggestions?</p>