This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Struts and the fly likes Dropdown with options generated by database Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "Dropdown with options generated by database" Watch "Dropdown with options generated by database" New topic
Author

Dropdown with options generated by database

Nicolás Muñoz
Greenhorn

Joined: Nov 11, 2009
Posts: 17
Hello. I'm using Struts 1.3 and Hibernate. In a jsp, I would like to have a dropdown which has options generated by a list of objects present in a database. How can I do this? There doesn't seem to be a clear way to do this. Thanks
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Put the results from the query into a collection and use the standard Struts 1 html tags?
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Dropdown with options generated by database
 
Similar Threads
how to display values from database in a dropdown box?
Ajax drop down
unable to diable drop down box options in IE
drop down box using struts
how to get values in dropdown box from database?