Hi
Another posiblity
int k=0;
while (rs.next()) {
k++;
// do something, it means the ResultSet isn't empty
}
if (k>0)
System.out.println("Total rows :"+k);
Hope it'll be useful
Regards
Fabio Alarcon Ortiz
Seguro Social de Salud
Gerencia Central de Desarrollo e Informatica
Gerencia de Sistemas
Phones : (51 1) 265 6000, 265 7000 Extensions 2356, 2357
Mobile : (51 1) 855 1393
ICQ : 11002875
email : [EMAIL PROTECTED], [EMAIL PROTECTED]
___________________________________________________________________________
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