title: java.sql.SQLException: No data found
body: <p>Its a part of Ajax jsp page</p>
  
  <pre><code>while(rs.next())  
    {
        System.out.println(rs.getString("Flat_No"));
        buffer=buffer+"&lt;option value='"+rs.getString("Flat_No")+"'&gt;"+rs.getString("Flat_No")+"&lt;/option&gt;";   
    } 
  </code></pre>
  
  <p>There are total 4 values in Flat_No
  it printing first values in console and aftr that i m getting error on my jsp page "java.sql.SQLException: No data found "</p>