I am having a problem with getting the <bean:write > to work with
the <logic:iterate > tags.   This is the cleanest way I could find to
print a bunch of checkboxes with ids as the value to pass back to
my action and labels of the checkboxes all being filled with data
from a Array of customer objects:

<logic:iterate id="customer" name="unapprovedCustomers"
type="blah.blah.blah..CustomerBean">
  <tr>
  <td align="middle"><html:checkbox property="approvedCustomerIds"
value="<bean:write name="customer" property="customerId"/>" /></td>

  <td nowrap><bean:write name="customer" property="lastName"/></td>
  <td nowrap><bean:write name="customer" property="firstName"/></td>
  </tr>
</logic:iterate>

The code above works great except in the <html:checkbox > tag the
<bean:write > tag is never interpreted (i.e. I view source on the html
and all the checkbox value="<bean:write ...>" instead of value="111"
if someones id was 111 for example).

Before I go to a <jsp:usebean > tag or <% java code %>  I would
rather figure how to get the above working.  Also I tried single quotes
inside the value="" and single quotes like value=' ' and nothing seems
to work.

Thanks in advance.



Reply via email to