use
rs.first() before you start again
and make sure that the statement is set to scrollable for the Result Set
obtained


-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Peter Palombi
Sent: Friday, March 02, 2001 11:59 AM
To: [EMAIL PROTECTED]
Subject: ResultSet and next()


Hi all,

i have made a jsp programm to access to a db.

i use
..
ResultSet rs = select.executeQuery("SELECT * FROM table");

and than
i use

while ( rs.next()) {
..
}

to extract all date of the query.
i'm at the end of the query now.

than i would now go at the head of the date(query(the query is the same))
and to do again this command

while ( rs.next()) {
..
}

it's possible without to do other connection .. or without to save the date
in one array.


thanks for your help
Peter

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to