aspose file tools
The moose likes JSP and the fly likes display format page by page Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSP
Reply 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: 56179
    
  13

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.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: display format page by page
 
Similar Threads
Pagination In JSP Page
retrieving thousand of rows from DB2 database
plz help me
How Google and other websites search faster
Adding new values in Session