This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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

Multi Select Drop Down

BuccaneerAnirban Bhattacharjee

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:

Consultant, Sima Solutions
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Multi Select Drop Down
jQuery in Action, 3rd edition