Brian Long wrote:
Hi folks,

I've got a Map that I'm using to render a list of checkboxes in the jsp,
thus:

---

  <logic:iterate id="group"
                   type="java.util.Map.Entry"
                   name="groupMemberViewerForm"
                   property="groups">
<tr>
    <td class="field-data">
    <html:checkbox name="group" property="key" />
    </td>
    <td>
    <html:link action="/QueryManager"
          paramId="managedPersonUID"
          paramName="group"
          paramProperty="key">
          <bean:write name="group" property="value"/>
    </html:link>
    </td>
  </tr>
  </logic:iterate>

---

When the form is submitted, where are the "checked" values?

You should end up with N request parameters named 'key' (one per checked box). If your form bean has a property named 'key', those request parameters should get set there (the property would need to be an array or list, to hold multiple values, of course).

L.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to