I have a datatable (records from database table) displayed to the user using JSP. The user needs a checkbox selectall functionality where in user can select all the records in the datatable on the screen and submit the form for further processing. The checkbox column is shown on the screen but not part of database table. Please suggest how to go about it. A working example will certainly help. I am usin JSP and Struts 1.x.
posted 6 years ago
You have uniquely identify each row by id.& that same id you should give to check box.Whenever you are submitting the form,you should make sure that you are passing selected check box ids.