aspose file tools*
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 Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "please solve this question on <html:multibox>?" Watch "please solve this question on <html:multibox>?" New topic
Author

please solve this question on <html:multibox>?

tejz teja
Greenhorn

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?

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

Joined: Aug 03, 2008
Posts: 9280
    
  17

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
Author
Rancher

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: http://aspose.com/file-tools
 
subject: please solve this question on <html:multibox>?
 
Similar Threads
multiple selection in <html:multibox>?
how to get multiple slection options in the <html:multibox> ? please help me... see the below code..
multiple slection options in the <html:multibox> ???
multiple slection options in the <html:multibox> ?
Iterator and multibox