• Post Reply Bookmark Topic Watch Topic
  • New Topic

populate data in a drop-down list from database?

 
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: 65519
105
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!