You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Huan Gao <hg...@epalscorp.com> on 2003/06/12 19:35:57 UTC

how to pass more than one value when a multibox is checked?

Hi,
 
I am not able to pass more than one value when a multibox is checked. Is
there any 
possible (or alternate) way to do it?
 
I have a table in the JSP where each row contains a multibox, and a
text field. When I select a checkbox and then enter some value in the 
text field and Submit, I need to get text field value related to this
checkbox. Is there a possible way to achieve this? 
How can I know which checkbox connects to which text field?
 
My jsp page is as followings:
<logic:iterate id="element" name="projects" >    
<tr>  
  <td align="right">
          <html:multibox property="selectedItems" >
            <bean:write name="element" property="id"/> 
          </html:multibox>
  </td>
       <td align="right"><strong>project Title:</strong></td>
       <td><html:text name="element" property="name"/>         
       </td>
 </tr>
</logic:iterate>
 
Thanks in advance!
 
Sarah