Meaningless Drivel is fun!
The moose likes JSP and the fly likes page navigation problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "page navigation problem" Watch "page navigation problem" New topic

page navigation problem

Tania Sen

Joined: Feb 28, 2010
Posts: 8
here is the 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

Joined: Jan 10, 2002
Posts: 63838

See the JSP FAQ which has an entry on data paging.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: page navigation problem
jQuery in Action, 3rd edition