Hi all,
I've read in this
thread the same problem i've got but didn't post a solution so i'm going to open this problem again and hoping that i able to get some hints to the solution from you all. The problem goes similarly like this:
I am currently using the JspTag Library to do the paging of a large set of data. Each row of data comes with a checkbox. I want to enable the user to check the boxes they want, and go on to other pages to check other boxes. As they go through all pages, all the boxes should remained checked. How do I do this?
I know how to use session to store information to pass to other pages, but I can't seem to do the same for this.
Basically, have a
jsp file that does the displaying and paging of all the data. There's a request handler that will be responsible for the request from the jsp.Each data row has a checkbox with unique name, so that I can identify which is checked or not.
Let's say I have 40 rows of data. I can display 20 rows of data on each page. Which means there will be 2 pages. The user goes from page to page by clicking on a link.
I like to know:
How do I save the values of all the checkboxes on a page?
How do I retrieve the values of the checkboxes when this page is requested again?
Btw, the bean that i'm using doesn't have an attribute to store the state of the checkboxes so i don't think it's possible to access them via the session object?
Cheers,
Rema