Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

page navigation problem

 
Tania Sen
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
here is the scenario..my servlet fetches the whole table which i store in an ArrayList,which i pass to a jsp page,where i run a for loop and print the contents... it is an announcement page..and i store it in a database which is printed in announcement.jsp page
Now i want that user click's "next" hyperlink and the same page reloads and displays next 10 announcements and so on...similarly i want to use a "previous" page...
i am using an arraylist
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64967
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See the JSP FAQ which has an entry on data paging.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic