aspose file tools*
The moose likes JDBC 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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC
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: 2902
    
    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: 2902
    
    1

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