title: How to select the last row of database in jsp?
body: <p>I am not able to display the last row of my database in jsp. I already tried to print <code>rs.getString(1)</code>, but it does not work.</p>
  
  <pre><code>ResultSet rs = st.executeQuery("Select MAX(CustomerID) from Customer");  
  while(rs.next()){out.print(rs.getString(1));}
  </code></pre>