Yes,

Try this.

while (dataResultSet.next())
                {
                        ... put code here.
                        rowCount++;
                }
                return rowCount;

You may want to put this in a method you call and return the rowCount.

Tom Kochanowicz


-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Sunil
Dua
Sent: Monday, October 11, 1999 12:02 AM
To: [EMAIL PROTECTED]
Subject: Resultset in a servlet


Hi three

Is there any method through which one can get to know the no of records
fetched by a query (in a Resulset).

Regards
Sunil Dua

___________________________________________________________________________
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

___________________________________________________________________________
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

Reply via email to