i have list of pagging 1 to 10.all the pagging have check box.if user check first 2 record and i am storing the value in session.and user click the second page the session value is overwrited can any body tell the solution?
my requirment is i have to store all the checked box value in session from first page and second page so on..the last page checked value only storing in session
Hi Vijaykumar, Is you click on next page link or button going to a servlet where you are getting the parameters and storing them in the session and the forwarding to the same jsp showing next set of records? If yes the after getting the parameters you have to check if the attribute chkbox is already bound to the session, if it is bound you have to add the newly checked elements to the originally stored ones, and the save in session scope with same name. Saving the checked elements as a List would be a beter idea then saving it as an array.
Firstly please make sure you use code tags while posting your code.Unformatted code is difficult to read and results in less response for your post. Read this for more information. You can edit your current post to add code tags by clicking .
I am not getting hold of your problem, you need to tell more details. On which page is the "chkbox" ? And do you get a null in the id?