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

populate data in a drop-down list from database?  RSS feed

 
Shiny Suresh
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I have a task to populate data from db2 database in a drop-down list in JSP. I have a DAO class which queries the database and has the data in a List.
eg.


How do I iterate thru this List in the jsp and populate it in a dropdown list, using JSTL?

Any help would be appreciated.

Thanks,
Shiny.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66184
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<c:forEach>

Please SearchFirst. This has been asked many times.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!