Have the results in a data structure and implement cursor like variable. For
example when you display results 10-19 move cursor onto result 10. The idea is
that your cursor will be pointing to a place where you have started showing
results from. If you need to go forward another ten then move cursor to 20 and
show 20-29.
This works for smaller results set (under 1000) because of memory, afterwards
you probably want to go to a database and do a query for each set of results
but the idea with keeping a cursor is still the same.
dave.
Do you know that today is the last odd date before 1.1.3111 ?
"Napoli, Carl" wrote:
> I'm looking for a Servlet that can parse query result. Something that can
> manage next/previous pages.
>
> Carl
>
> ___________________________________________________________________________
> 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
--
David Mossakowski [EMAIL PROTECTED]
Programmer 212.310.7275
Instinet Corporation
"I don't sit idly by, I'm planning a big surprise"
___________________________________________________________________________
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