This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to bind database items in my combox

 
paul alvin
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can I get the database items to be the options in my combo box items?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65221
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic