title: How to return multiple rows from result set object to send servlet
body: <p>I have a class it retrieve number of rows from database but here i return result set object to servlet class and based on those rows i need to display in table when i retrieve table it shows single row only but when i execute same query it shows in Database having two rows may be i didn't return result set object properly can anyone help me to retrieve all the all records from database.</p>
  
  <p>Servlet :</p>
  
  <pre><code> WorkAreaClass wa=new WorkAreaClass();            
                 ResultSet resultSet = wa.workarea(User);        
                  if(resultSet.next())
                  {                   
                   table(resultSet,out);              
                  }   
  </code></pre>