wood burning stoves 2.0*
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
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: 61227
    
  66

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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to bind database items in my combox