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

display format page by page

adam france

Joined: Jan 25, 2006
Posts: 9

In my program resultset contain more than 30 records.

I want to display 20 records and first page contain 10 records and second page contain 10 records.

The results should be shown in two pages with the index Page 1 of 1 or Page 1 of 2.

Suppose If there are less than 10 results, do not show the Page Index.

plz send me code.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63866

You will find some information on pagination in the JSP FAQ.

Originally posted by adam france:

plz send me code.

JavaRanch is not a code mill. You will find that people are more than willing to help you write your code, but this is the wrong place to come and expect people to write your code for you.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: display format page by page
It's not a secret anymore!