Hi,
I think it is better to do it like this:
boolean hasResults = rs.next();
if(hasresults) {
// data in the ResultSet
while (hasResults) {
// as long as there is Data in the Results Set
hasResults = rs.next(); // goto next
}
}
else {
// no data in their
}
Matthias
--
-------------------------------------
eMail: [EMAIL PROTECTED]
Homepage: http://www.m-brantner.de
Tel.: 0621-1211776
-------------------------------------
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html