I am displaying a jsp page with 3 columns 1> complaint_no, 2>user_id, 3>attend_yn. The 3rd col. attend_yn will be checkbox. When user logs in he will see complaints assigned to him, he will select one or more complaint_no which he will attend.
My problem is how to handle checkbox value. The value of attend_yn='A' when checked by user and attend_yn='N' when user doesn't select any or deselect existing selected complaint.
I want to show the checkbox checked when attend_yn='A' and unchecked when attend_yn='N'.
For checkbox "attendchk" how to set value 'A' and checked as retrieved from database and value to 'N' and unchecked .
I am able to loop through complaint_no but without values of checkbox as 'A' or 'N' I cannot update database.
In AttendOKUIB.jsp I have some code as
Hope I am clear Please advice
Tushar [ December 26, 2008: Message edited by: Tushar tej ]
Here i am assuming that the only value other than A would be N If that is not the case, i hope you got the idea and can change the above code as per you data points [ December 26, 2008: Message edited by: Sunil Kumar ]