File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes please solve this question on <html:multibox>? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "please solve this question on <html:multibox>?" Watch "please solve this question on <html:multibox>?" New topic

please solve this question on <html:multibox>?

tejz teja

Joined: Feb 12, 2010
Posts: 7
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?


------------- ------------------ ---------------------

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

<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'?

<td><bean:write name="FORM" property="name" /></td> [NAME]
<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"/>

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

Joined: Aug 03, 2008
Posts: 9280

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...

SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
David Newton

Joined: Sep 29, 2008
Posts: 12617

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.
I agree. Here's the link:
subject: please solve this question on <html:multibox>?
Similar Threads
how to get multiple slection options in the <html:multibox> ? please help me... see the below code..
multiple selection in <html:multibox>?
multiple slection options in the <html:multibox> ?
Iterator and multibox
multiple slection options in the <html:multibox> ???