title: How to retain html values on returning with results from servlet
body: <p>I have a jsp page with 2 textboxes and a submit button and on submitting i get the work done by a servlet based on the textbox values and displays the result retrieved from db in the same jsp page in html table format.</p>
  
  <p>I want to achieve the following:</p>
  
  <ol>
  <li><p>how to retain the same values in the text box? For example, I select march 3rd (<code>txtbox1</code>) to apr 4th (<code>txbox2</code>). After it returns after submission it should show the same march 3rd and apr 4th in the textboxes.</p></li>
  <li><p>First time when i reach that page i want the current date to be displayed in those text boxes. </p></li>
  <li><p>How can i extract the html table data (which i get after submission) as it is in excel and pdf files on button clicks?</p></li>
  </ol>