This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How do I store list of value from database in to combo box  RSS feed

 
sarasah guna
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The promblem is that I have retrive list of values from the database .Butit only pass single value to the combo box.Do i have to store the value in vector before assign it to the combo box.
 
xu kuang
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<logic:iterate iterateId="list" property="list[@type='FDBID']">

<bean:write id="list" property="FDBID/projectID"/><br>

</logic:iterate>

"iterate" get database to "combo box" ,jsp have a format for it.

 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by sarasah guna:
The promblem is that I have retrive list of values from the database .Butit only pass single value to the combo box.Do i have to store the value in vector before assign it to the combo box.


Just to be sure you're in the right forum..
Are you talking about an HTML Select list in a webpage?
There is no such thing as a combo box in JSP.

Do you already know how to create a select list in a static HTML page?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66186
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by xu kuang:
<logic:iterate


This assumes that the OP is using Struts. Much better to use standardized tags like the JSTL. But first we need to see what the answers to Ben's questions are...
 
Evgeniy Bulanov
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sarasah guna, I load data from xml-file to combo. Take a look that stuff [http://jeak.sibr.ru/ipaqlinux/JComboMaxMatchEx.java] I suppose it'll be helpful for you.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!