This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Reply locked New topic

plz help me

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

Joined: Aug 24, 2005
Posts: 518

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.

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60764

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]
Don't get me started about those stupid light bulbs.
subject: plz help me
Similar Threads
How to Print the contents of a page
How Google and other websites search faster
display format page by page
Having Problems with Data Table and Pager component in JSF
Pagination In JSP Page