This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSP and the fly likes How to dynamically populate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "How to dynamically populate" Watch "How to dynamically populate" New topic

How to dynamically populate

John Ray Allen
Ranch Hand

Joined: Jan 06, 2005
Posts: 50
how can I dynamically populate a dropdown menu in JSP wherein its list will come from a certain column of a table in the database? thanks
Niki Nono
Ranch Hand

Joined: Mar 20, 2005
Posts: 256
connect to the database and form the resultset object.

Try the above code with your specific modifications and it will populate the combo box from the table according to the query.

Life called,so here I am.<br />Cheers<br />Niki.:-)
John Ray Allen
Ranch Hand

Joined: Jan 06, 2005
Posts: 50
Thanks niki..i appreciate it alot..
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: How to dynamically populate
Similar Threads
Populating JTable
Help in JSP
Using a List for Field Population
i want to create a file in the server from the client? is it possible?