This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
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

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
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: 63348

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 agree. Here's the link:
subject: displaying records in different pages.
It's not a secret anymore!