File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes how to create multiple dropdowns in struts? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how to create multiple dropdowns in struts?" Watch "how to create multiple dropdowns in struts?" New topic

how to create multiple dropdowns in struts?

Anil dhingra

Joined: Oct 01, 2009
Posts: 8
Can any one suggest me a way of creating multiple dropdowns in struts whose values will be populated from different arrays and selected values will be passed to Action class in a List?I know other way of doing it like recieving values in individual variables and then saving it in Database but I want to recieve it in List. Please provide example if possible.

Thanks in advance.
David Newton

Joined: Sep 29, 2008
Posts: 12617

Which version of Struts?

I'm not sure what the issue is, though--both Struts 1 and Struts 2 allow the creation of an arbitrary number of select boxes, and both have custom tags that accept a list of options to display.
I agree. Here's the link:
subject: how to create multiple dropdowns in struts?
Similar Threads
AJAX, DOM, and history
How to get multiple h:selectOneMenu values inside h:dataTable on form submit
retreive value after validation error
dynamic list box issue
Use JavaScript to set form values?