Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

please solve this question on <html:multibox>?

 
tejz teja
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a JSP where data is shown by use of a for:each loop. In this loop I have a multibox tag which will display checkboxes next to each corresponding row. A user will have the ability to select all or a few or none of the checkboxes and click print.How can I do this?

JSP PAGE LOOK :--

MULTIBOX PERSONNAME INVITATIONLIST
------------- ------------------ ---------------------
PROPERTY:-- [STRINGARRAY] [STRING] [STRINGARRAY]

<table><tr>
<logic:iterate id="message" name="MessageForm" property="nameList">

<td>
<html:multibox name="FORM" property="GETINVITATIONS">
<bean:write name="FORM" property="name" />
<bean:write name="FORM" property="selectedInv" /> <------ how to add String array to 'GETINVITATIONS'?
</html:multibox>
</td>

<td><bean:write name="FORM" property="name" /></td> [NAME]
<td>
<span>
<bean:define id="List" name="FORM" property="invLst" type="java.util.ArrayList" />
<html:select style="width:200px;" name="FORM" property="selectedInv" styleId="selectedInv1" multiple="true"> [MULTIPLE INVITATION NAMES]
<html:options name="List"/>
</html:select>
</span>
</td>
</logic:iterate>
</tr>
</table>

only name is adding to the GETINVITATIONS , selectedInv is not adding to it. only name printing in the console.
how to do it?
plase help me ......
 
Ankit Garg
Sheriff
Posts: 9519
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
tejz this is the 5th topic that you've created on the same problem since yesterday. Please stop creating multiple topics and read this. Also read How To Ask Questions On JavaRanch...
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please UseCodeTags when posting code or configuration. Unformatted code and configuration is very difficult to read. You can edit your post to include them by using the button.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic