This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
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
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "displaying fixed number of records on a page" Watch "displaying fixed number of records on a page" New topic
Author

displaying fixed number of records on a page

Rahul Ghai
Greenhorn

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
Hi,
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
-Prak


Prakash.M<BR>Bangalore- India<BR>(prakashem@rediffmail.com)
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: displaying fixed number of records on a page
 
Similar Threads
Pagination in Java
displaying records in different pages.
who are green horns,ranch hand,sheriff etc
Retrieving multiple records using Hibernate
help me ASAP