File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes displaying records in different pages. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "displaying records in different pages." Watch "displaying records in different pages." New topic

displaying records in different pages.

s ra

Joined: Feb 12, 2004
Posts: 7
I have a select st that retrieves 20 records.
I want to display 5 rcords in first page and the next set of 5 records in the next page and similarly the rest.
In my first result page I have first 5 records displayed with a next button. In the next page I have prev and next button and similarly the five records.
I remember seeing discussions like this in this forum.
Can anyone help me with a code or any link that has similar example.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63848

Yes, this has been discussed before. Please use the search facility on this forum, as well as the Servlets and JDBC forum to find those discussions.

[Asking smart questions] [About Bear] [Books by Bear]
Joe Pardi
Ranch Hand

Joined: Oct 03, 2001
Posts: 47
I agree. Here's the link:
subject: displaying records in different pages.
It's not a secret anymore!