File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes multiple slection options in the <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
Reply locked New topic
Author

multiple slection options in the <html:multibox> ?

tejz teja
Greenhorn

Joined: Feb 12, 2010
Posts: 7
<html:multibox name="FORM" property="GETINVITATIONS">
<bean:write name="FORM" property="EXE" />
<bean:write name="FORM" property="selectedInv" /> <---------------------------------------------what i have to write to get slected options here.......IS IT CORRECT?
</html:multibox>
</td>
<td><bean:write name="FORM" property="EXE" /></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]
<htmlptions name="List"/>
</html:select>
</span>
</td>

This was not working.,,.only slected NAME was printing..Iam unable to get SELECTED INVITATION NAMES ...
SO HOW TO ADD THIS SLECTED INVITATIONS TO THAT "GETINVITATIONS" it array of String.
this 'selectedInv' was giving errror...
so please help me....
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9280
    
  17

Duplicate Topic, please read this...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: multiple slection options in the <html:multibox> ?
 
Similar Threads
multiple selection in <html:multibox>?
multiple slection options in the <html:multibox> ???
how to get multiple slection options in the <html:multibox> ? please help me... see the below code..
please solve this question on <html:multibox>?
Javascript - Arraylist