Forums Register Login

populate data in a drop-down list from database?

+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
<c:forEach>

Please SearchFirst. This has been asked many times.
Something must be done about this. Let's start by reading this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1068 times.
Similar Threads
dynamic drop down list values
JSP CODE TO SELECT A DROP DOWN LIST ITEM
How to populate drop down box
retrive data from db2 as month and year wise
select drop down question
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 08:37:33.