aspose file tools*
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
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/
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to display records in different pages