title: Refreshing JSP select list value on Page refresh
body: <p>I have below code in my jsp :</p>
  
  <pre><code>    &lt;select name="productId" id ="productId" onchange="getDetail()"&gt;
      &lt;% for (int i = 0;i &lt; no_rows;i++){
      %&gt;
      &lt;option value="&lt;%=ar[i]%&gt;"&gt;&lt;%=ar[i]%&gt;&lt;/option&gt;
      &lt;%
      }
       %&gt;
      &lt;/select&gt;
  </code></pre>
  
  <p>On page refresh(F5), the values in the drop down is not getting refreshed.The previously selected value remain there. DB call to fetch the detail is in JSP itself.</p>
  
  <p>How to refresh the values?</p>