jQuery in Action, 2nd edition*
The moose likes JSP and the fly likes Problem with selecting Check box in a jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Problem with selecting Check box in a jsp" Watch "Problem with selecting Check box in a jsp" New topic

Problem with selecting Check box in a jsp

rahulj rjagtap
Ranch Hand

Joined: Oct 20, 2010
Posts: 39
I have a JSP page that dynamically lists records in a table from my database. At the left hand side of each row in the table, there are checkboxes for the user to select a particular record that he/she wants to do manipulation. Here we are showing 100 records per page and user can go to next page in which it will show one more hundred records(ie 101 to 200)..As now the problem is when user has select the particular record in Page 1 and when go to Page 2 and if he come back to page 1 the selected paritcular is not checked.... how make it to selected... Please, help me

Thank you for your help in advance...
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60741

Place the checked attribute on the checkboxes you wish to be checked.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
It is sorta covered in the JavaRanch Style Guide.
subject: Problem with selecting Check box in a jsp
Similar Threads
record gets inserted twice
Row locking using oracle database
Handling concurrent updates using JDBC
The selected checkbox should be checked
select all option in JSP