• Post Reply Bookmark Topic Watch Topic
  • New Topic

First, Next, Previous, Last

 
JiaPei Jen
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have come up with a LIST of articles from searching the database. I want display this LIST using JSP. For example, I have 367 articles in this LIST, and I want to display 50 of them per web screen. Is there code for navigating the LIST using First, Next, Previous, Last to go back and forth of this LIST?
 
Andres Gonzalez
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what you need is something like google search (first, previous, next, etc), right?
If so, do a search on this forum with the keyword "paging", you'll get tons of answers
By the way, I've used this
 
Steve Olson
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by JiaPei Jen:
... For example, I have 367 articles in this LIST, and I want to display 50 of them per web screen. Is there code for navigating the LIST ... ?

If you are using a Database take a look at SQLTags (http://sqltags.org), it has built-in support for paging with first, last, next, and previous tags
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!