Cote, Stephane <[EMAIL PROTECTED]> wrote:
> If a servlet displays the first 20 item of a resultset and a next
>button display the
>next 20 item of the resultset do you buffer the resultset or do you redo
the
>same query
>but scip the first 20 item to display the next 20 item.
It is probably more efficient to buffer the result set, unless you think
there's a good chance that the user won't want to view the next page of
data.
I wrote a simple class that implements the ResultSet interface to buffer my
results to a text file. Sun has just released something similar:
<http://developer.java.sun.com/developer/earlyAccess/crs/index.html>
Erik
___________________________________________________________________________
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