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 Multi Select Drop Down Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Multi Select Drop Down" Watch "Multi Select Drop Down" New topic
Author

Multi Select Drop Down

BuccaneerAnirban Bhattacharjee
Greenhorn

Joined: Nov 23, 2006
Posts: 9
Hi people,
can some one help me , how can i Create Dropdown with multiple selection in struts. How can I retireve all the selected values in my form bean.
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Specify multiple="true" with the <html:select> tag. Then Make sure the property refers to an array. The array should generally be String[], but it could also be int[]. Example:



Then in your JSP:


Merrill
Consultant, Sima Solutions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Multi Select Drop Down