File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes select records from multiple pages Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "select records from multiple pages" Watch "select records from multiple pages" New topic

select records from multiple pages

JayaSiji Gopal
Ranch Hand

Joined: Sep 27, 2004
Posts: 303
i have a resultset of 100 records. 10 records are displayed and pagination is displayed for the users to navigate to other pages. All this is accomplished using jstl.

if the user selects 2 records on page 1, navigates to page 2 and selects 2 more records, only the records from page 2 get selected. how can the records from page 1 and page 2 get selected? how can i retain selected records between pages?

SCJP 1.4, SCWCD 1.4<br /> <br />Thanks in advance!<br />Jayashree.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63858

You didn't mention what you are using on the back end. You could retain this information across multiple pages in the session, if using servlets. Or, you could carry the selections across pages by creating hidden inputs to hold them.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: select records from multiple pages
It's not a secret anymore!