title: Retrieving data from a MySQL database and displaying it in html using java
body: <p>I have a MySQL database and I am trying to search it and display the results in a table with the same columns as the db in HTML on a web page. I am using JAVA for the servlet and I have the web page send the search string using JavaScript to the servlet. I know how to:</p>
  
  <ol>
  <li>Connect to the database</li>
  <li>Query db and retrieve appropriate data in a resultset</li>
  </ol>
  
  <p>I am having trouble going from the resultset and sending it back to and displaying it on the web page in a table.</p>