If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

How to implement Paging

Hi,
i have a Jsp Page called Items.jsp, in that i am displaying the items(64 items)on Items.jsp.
But my problem is that i don't want to display all the 64 at a time, i want to display like page by page. lets say 20 Items per page.

and it should display 1-20, 21-40, 41-60, 61-64...

Plz help me to implement this and provide me the source code if u guys had it.

when a user clicks the link (1-20 for instance) just send two variables to the server: start and stop
with start having a value of 1 and stop having a value of 20.
With those values, you know where to start and stop looping your array of values.