This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates 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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
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: 61448
    
  67

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