There are many ways to do it..First u have to retrieve all the rows from the database and store them in Vector.. if u r displaying the data in a jsp u can store that vector in a session and u can also have current index which u can incrememnt by 10 whenever u go to next page..
Here are some notes from a prior discussion of this:
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi