Hi prashant
One of my edit pages faced this kinda stufff... <td align="center"><input type="checkbox" name="siteAdmin1" onclick="check(document.forms[1].siteAdmin)" <% if (objRole.getSiteAdmin() !=null && objRole.getSiteAdmin().equalsIgnoreCase("Y")) { %> checked <%} else{%> <%}%> value="Y"> <input type="hidden" name="siteAdmin" <% if (objRole.getSiteAdmin() !=null && objRole.getSiteAdmin().equalsIgnoreCase("Y")) { %> value="Y" <%} else{%> value=""<%}%></td> perhaps this will work as it encloses the check box ...its prepoulated value...at the same time...a hidden field which sets the new value...incase we click the checkbox in the edit section. Shilpa -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 13, 2004 2:14 AM To: [EMAIL PROTECTED] Subject: Can html:checkbox take only yes/true/on as value? Hi, In regular HTML checkbox, the value of the checkbox can practically be anything. Does the struts html:checkbox limit us to just yes/true/on values? If I have a list of records that I get from the database and I want to display it with a checkbox at the left, the value of the checkbox being the id of the record, how do I do that? Should there be another hidden field for the checkbox with the actual value? And how do I connect the checkbox to its corresponding hidden field? I have searched high and low and found no clear explanation. I just want someone to explain this to me. Also how does the multibox fall into the picture? Can I use checkbox and multibox interchangeably? Thanks Prashanthi -- "This e-mail message may contain confidential, proprietary or legally privileged information. It should not be used by anyone who is not the original intended recipient. If you have erroneously received this message, please delete it immediately and notify the sender. The recipient acknowledges that ICICI Bank or its subsidiaries and associated companies, (collectively "ICICI Group"), are unable to exercise control or ensure or guarantee the integrity of/over the contents of the information contained in e-mail transmissions and further acknowledges that any views expressed in this message are those of the individual sender and no binding nature of the message shall be implied or assumed unless the sender does so expressly with due authority of ICICI Group.Before opening any attachments please check them for viruses and defects."