I have a jsp page which will display search results. We have pagination and will display 10 records at a time and the resultset will contain 300 records usually.
I have a checkbox for every record and I need to get the selected values of all these 300 records and pass it to another jsp.
What is the best possible way. Currently I am using an arraylist, getting the checked values and putting them in the arraylist and setting the arraylist in session.
But the problem is, suppose the user selects 1 in the first page, clicks next button, selects 2 more in the 2nd time and click the PASS button(to pass the values to another jsp), only the values selected in the first page is there in session.
How can I include the currently selected ones in session.
Its not a bug. Its just that I am not able to add the latest checkbox values in session without refreshing the page.
As you said, just to add into the session, I dont want to refresh the page.
I know you can use AJAX, I just used it once. SO to use it now would not be ideal.
Are you giving them the option of skipping one page of the form if they feel it doesn't apply? If so then, why not treat nulls as a value for those fields that get skipped when a user clicks the PASS button?