This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JDBC and Relational Databases and the fly likes How to show only limited number of database result on 1 page? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "How to show only limited number of database result on 1 page?" Watch "How to show only limited number of database result on 1 page?" New topic
Author

How to show only limited number of database result on 1 page?

Chetan Sharma
Greenhorn

Joined: Nov 20, 2008
Posts: 7
I am developing a college project using JSP, servlets using RAD and DB2. What I want to do is if say I am getting 30 results from database I only want to show 10 on page and next of the result can be seen by clicking on next and previous buttons. How can I do so?
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2904
    
    1

http://faq.javaranch.com/java/PaginationOrPaging


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Chetan Sharma
Greenhorn

Joined: Nov 20, 2008
Posts: 7
Thanks
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2904
    
    1

Welcome
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: How to show only limited number of database result on 1 page?
 
It's not a secret anymore!