aspose file tools*
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
Author

display format page by page

adam france
Greenhorn

Joined: Jan 25, 2006
Posts: 9
hi

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
Marshal

Joined: Jan 10, 2002
Posts: 61437
    
  67

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] [Bear's FrontMan] [About Bear] [Books by Bear]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: display format page by page