aspose 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
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP programming