You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Mississippi John Hurt <jo...@gmail.com> on 2006/08/26 23:27:25 UTC
Problem with Checkbox from Database to JSP
I'm trying to populate a list of checkboxes, some checked, some not from the
database. I followed the Husted Tip#7 but still have problem. My actionform
has 2 arrays 1 for selected (selectedFormPropertyArray), 1 for all
checkboxes (allFormPropertyArray) populated fine. But when I go to the jsp,
it fails render. This is what I have in JSP. What's wrong?
<logic:iterate id="item" property="allFormPropertyArray">
<html:multibox property="selectedFormPropertyArray">
<bean:write name="item" property="itemPropertyID"/>
</html:multibox>
<bean:write name="item" property="itemPropertyName"/>
</logic:iterate>
Please help? Thanks.