pal ii am making a few assumptions
1)The number of checkboxes on u'r screen are not dynamic ,i.e. there are a fixed number of check boxes on u'r screen.
2)You are checking the checkboxes in Add mode and their state is getting saved in the Database .
3) In update mode u want to display the chechBoxes with state populated from the database .
U could go about it in this fashion .Execute a query when u call enter the jsp in Update mode which query's the database for the state of the checkBoxes.
Form a delimited
String on the server with values from the resultset . Typically it's gonna look like
Y%Y%N%N%Y where Y stands for a checked checkBox & N for a unchecked CheckBox & % is a delimiter . Assign this
java Array to a javaScript array .
using split() function .
Now u can assign the values to individual checkBoxes using javaScript in a function called on body onLoad().....
Please mail if u need any further clarifications.
Sachin