File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes displaying fixed number of records on a page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "displaying fixed number of records on a page" Watch "displaying fixed number of records on a page" New topic

displaying fixed number of records on a page

Rahul Ghai

Joined: Nov 03, 2000
Posts: 21
In JSP ,after retrieving records from the database in a resultset object, how can i display only five records at a time in a page and after clicking on the next button, the other five records should be displayed and so on.....using javascript.
prakash muthu
Ranch Hand

Joined: Sep 06, 2000
Posts: 75
I have a couple of idea for your problem..Check it out and let me know.
1)Put the values in a vector and you can show first 5 in the first time, then if the user click on Next button, you can show a next 5 records.
Here the problem is all records will be in client side
2) You can use a separate server call for every click on next button.
Based on your situation you can use any one

Prakash.M<BR>Bangalore- India<BR>(
I agree. Here's the link:
subject: displaying fixed number of records on a page
Similar Threads
who are green horns,ranch hand,sheriff etc
help me ASAP
Retrieving multiple records using Hibernate
Pagination in Java
displaying records in different pages.