• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

please solve this question on <html:multibox>?

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ......
 
Sheriff
Posts: 9707
43
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic