Meaningless Drivel is fun!
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: 63202

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] [Bear's FrontMan] [About Bear] [Books by Bear]
Joe Pardi
Ranch Hand

Joined: Oct 03, 2001
Posts: 47
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: displaying records in different pages.
It's not a secret anymore!