Writing buffered Searches

Hi I seem to be confused on how to write a java servlet or java class that can allow the user to view buffered results from the query he made to the database. For example if the user searches for a document in a database, he should be able to see 10 results returned and when he clicks a hyperlink "Next 10" he will see the next 10 results in the resultset. (Just like the search results displayed by Google).

Can someone guide me to some sample code or an example on how to perform this kind of search.

[516 byte] By [Parthiv108a] at [2007-10-3 3:48:32]
# 1

Here is a link:

http://www.jguru.com/faq/view.jsp?EID=60818

The idea is this: Create some data structure that resides on the server, then

allow that structure to return a subset of its information based upon the

query string i.e. ?count=10&item=hat) in the URL.

-Cludge

cludgea at 2007-7-14 21:45:34 > top of Java-index,Java Essentials,Java Programming...
# 2
Thanks for the link. I thought there might have been a way that the java API classes would handle this for you.
Parthiv108a at 2007-7-14 21:45:34 > top of Java-index,Java Essentials,Java Programming...