Hi,
You can use the sessions Objects which can store results corresponding to each
user.And then send the results in chunks on request from the user.The Session objects
can be set a timeout so that if the user does not need the results any more it will
get garbage collected after the specified time.
Brijesh
>
> Hi Folks,
>
> I am writing a Servlet that searches the database for a set of keywords. The
> results of the search could be thousands of records. But i need to show the
> user only the first 10 records and if he wants more then the next set of
> records would be served, and like that..
>
> my question is how do i cache the resultset at the server side. What is the
> best way to do it.. Are there any samples in the web that i could use.
>
> I would appreciate if i somebody can point me the right direction.
>
> Thanks in advance
>
> jj
>
> __________________________________________________
> FREE Email for ALL! Sign up at http://www.mail.com
>
> ___________________________________________________________________________
> 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
___________________________________________________________________
Get your free, permanent e-mail @www.com, the original Net address!
- http://www.com/freemail
Listen to your favorite music while you work!
- http://www.com/radio
___________________________________________________________________________
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