This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman 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 Building Microservices this week in the Design 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: 63232

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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: plz help me
It's not a secret anymore!