How to initialize checkbox with a value from the DB?

Hi, I need to make a checkbox (<html:checkbox&gt that initialize values from the database. If the user unchecks the box, and save it, newly checked values will be save in the db. Actually when i run the jsp, the values from the db is displayed in my tomcat, but the checkbox in my jsp is not checked.. can you somebody help me.. tnx in advance.

if (gmVO.getEncode().equals("1")){listOfDataStatus[0]="ENCODE";} if (gmVO.getReview().equals("1")){listOfDataStatus[1]="REVIEW";} if (gmVO.getApprove().equals("1")){listOfDataStatus[2]="APPROVE";} if (gmVO.getAutoReview().equals("1")){listOfDataStatus[3]="AUTOREVIEW";} if (gmVO.getAutoApprove().equals("1")){listOfDataStatus[4]="AUTOAPPROVE";} if (gmVO.getDataView().equals("1")){listOfDataStatus[5]="DATAVIEW";}