servlet and result set

"Carter, Scott" <[email protected]>
Newsgroups gmane.comp.java.sun.servlet
Message-ID <92EFB80E551BD511B39500D0B7B0CDCC0715147F@ohms.electric.ci.austin.tx.us>
My question is what is the best and most efficient way to determine the size
of a result set (number of rows returned) ?   The other question is I am
executing a database query and getting possibly 50 results and I want to
display my results 5 per page, is the best way to do this execute one query
and then keep the result set object in the session for building multiple
pages?

Thanks in advance - Scott Carter

___________________________________________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.