title: how to autogenerate the textbox value in jsp
body: <p>im try to autogenerate the particular unique textbox value of a form and must increment every time on page load. I tried by using static variable, but eventually its of no use because When I close the broswer and rerun the application it starts from its initial value.</p>
  
  <pre><code>&lt;%! static int i=0; %&gt;
   &lt;% i++; %&gt;
  &lt;span class="label"&gt;Registration No.&lt;m id="rbn" style="color:red"&gt;*&lt;/m&gt;&lt;/span&gt; 
   &lt;input type="text" name="rgno" value="CHD-&lt;%=i%&gt;" class="input_panel"  maxlength ="15"  id = "rgno" minlength="1" /&gt;
  </code></pre>
  
  <p>Please help me out!</p>