This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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 agree. Here's the link:
subject: Multi Select Drop Down
Similar Threads
ConnectionFactory lookup returns null
Increase memory for tomcat
I've bought Sybex Java 2 Certification Virtual Trainer
Hide Standart Buttons in Taskbar
Assertion Doubt.