File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes plz help me Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply locked New topic
Author

plz help me

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.
Scott Johnson
Ranch Hand

Joined: Aug 24, 2005
Posts: 518
Adam,

Welcome to JavaRanch.

This sounds suspiciously like a homework assignment.

Why don't you try to solve it and ask specific questions if you get stuck.

I'm sure someone will be willing to help you debug your code.

Regards.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60057
    
  65

adam, please read this.

Also, please do not cross-post the same question in multiple forums. It wastes people's time when multiple redundant conversations take place.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: plz help me
 
Similar Threads
How Google and other websites search faster
Having Problems with Data Table and Pager component in JSF
display format page by page
How to Print the contents of a page
Pagination In JSP Page