title: Moving ResultSet to first
body: <p>I have a resultset obejct as rs and i used the fragment of code to count the number of rows..                       </p>
  
  <pre><code>       while(rs.next())
             count++;
  </code></pre>
  
  <p>and i has to use the same resultset again to retrieve the data. I used the method</p>
  
  <pre><code>    rs.beforefirst(); 
  </code></pre>
  
  <p>but it is not working... control is not entering into </p>
  
  <pre><code>   while(rs.next()){
        cid=rs.getInt(1);
        taskdate=rs.getString(2);
        tasktime=rs.getString(3);
        addr=rs.getString(4);
     }
  </code></pre>
  
  <p>I has to return 4 rows according to my query.. but it doesn't ???</p>