File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes JSP programming Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "JSP programming" Watch "JSP programming" New topic
Author

JSP programming

Annemarie McKeown
Ranch Hand

Joined: Nov 07, 2003
Posts: 47
How do you limit the display of only a certain amount of records from a database on one html/jsp page.
I want to retrieve all records relative to my particular search, but I only want to display the most recent 10 items on one page, and make some sort of
1,2,3 counter - each number a link, to other pages which will display the previous 10 records and so on...1,2,3 links relative to how many records in database? I have an auto-increment table so I guess this will determine which are most recent or not, but how would I go about implementing my problem here?
Im working on a jsp app, so that is the reason I have posted this subject here, wasn't sure what forum it would belong.
Chris Hall
Ranch Hand

Joined: Dec 04, 2002
Posts: 39
Check out this recent thread, this should cover what you are asking.
http://www.coderanch.com/t/284560/JSP/java/First-Previous-Next-Last-Page
 
 
subject: JSP programming
 
Similar Threads
Pagination
Paginate in JSP
pagination in jsp
JDBC Records too much for the JSP Page Effective solution wanted
dynamically add rows to the exitsting table