This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JSP and the fly likes how to display records in different pages Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "how to display records in different pages" Watch "how to display records in different pages" New topic
Author

how to display records in different pages

dinesh kumar
Greenhorn

Joined: Sep 19, 2005
Posts: 7
Hi,

how do i display records retrieved from database in different pages.
for example-: 1st five records in first page
6th to 10 records in next page and so on

just as in java ranch page also we have
1 2 3 4 5 6 7

1-displays 1st 20 messages
2-displays 21 to 40 messagess and so on

pleases help me.

Thank you.
Heonkoo Lee
Ranch Hand

Joined: Feb 10, 2005
Posts: 85
It is called paging or pagination. There are many previous discussions about this in the forum. Also, there are some open source projects for this, one is displaytag, http://displaytag.sourceforge.net/
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: how to display records in different pages