Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to dynamically populate

 
John Ray Allen
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 256
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
John Ray Allen
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks niki..i appreciate it alot..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic