aspose file tools*
The moose likes Servlets and the fly likes REcordset PAging 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 » Java » Servlets
Bookmark "REcordset PAging" Watch "REcordset PAging" New topic
Author

REcordset PAging

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
CAn u do recordset paging in jsp's as u do in asp's
Arun, Shanmugham
Ranch Hand

Joined: Apr 05, 2001
Posts: 34
HI,
You can use a while loop before the actual display of records to skip n number of records, where n is the number of records already displayed. The same jsp file should be called with the number of records displayed when the user clicks Next button.
Hope u got it.
Arun
SCJP

Sun Certified Programmer for Java2 Platform
Phil Hanna
Ranch Hand

Joined: Apr 05, 2001
Posts: 118
With JDBC 2.0 and later, you have random access to the result set. If you specify TYPE_SCROLL_INSENSITIVE in the createStatement method, you can position the database cursor at any record in the result set and read forward or backward.
------------------
Phil Hanna
Sun Certified Programmer for the Java 2 Platform
Author of :
JSP: The Complete Reference
Instant Java Servlets
Website: http://www.philhanna.com


Phil Hanna<BR>Sun Certified Programmer for the Java 2 Platform<BR>Author of :<BR><A HREF="http://www.amazon.com/exec/obidos/ASIN/0072127686/electricporkchop/107-3548162-1137317" TARGET=_blank rel="nofollow">JSP: The Complete Reference</A><BR><A HREF="http://www.amazon.com/exec/obidos/ASIN/0072124253/electricporkchop/107-3548162-1137317" TARGET=_blank rel="nofollow">Instant Java Servlets</A>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: REcordset PAging