File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes How to bind database items in my combox 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 » Java » JSP
Bookmark "How to bind database items in my combox" Watch "How to bind database items in my combox" New topic
Author

How to bind database items in my combox

paul alvin
Greenhorn

Joined: Nov 15, 2012
Posts: 15
How can I get the database items to be the options in my combo box items?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60785
    
  65

In the page controller, fetch the list of options from the model. Pass them to the JSP as a scoped variable that is read by JSTL and EL on the JSP to create the option elements.

P.S. Please read HtmlHasNoComboBox -- proper terminology can be important.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
Don't get me started about those stupid light bulbs.
 
subject: How to bind database items in my combox
 
Similar Threads
automatic calculation of data in database.
scanning items into database for online shopping site
B&S: Problem with stop server
Controlling a database item's life time
Question about using logic:empty tag