File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Dropdown with options generated by database
 
Similar Threads
unable to diable drop down box options in IE
drop down box using struts
how to get values in dropdown box from database?
how to display values from database in a dropdown box?
Ajax drop down