This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara 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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Frameworks » Struts
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?
 
Consider Paul's rocket mass heater.
 
subject: Dropdown with options generated by database