File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Soft Skills this week in the Jobs Discussion 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
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://aspose.com/file-tools
 
subject: displaying fixed number of records on a page