Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to generate dynamic drop down menu pulling data from the Collection Object

 
Ashu Patel
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a a collection of the UserId which I want to populate into the dropdown menu
this collection of UserIds I am geting from database using the SQL and saving it into collection object
I am wondering how will i generate the dropdown menu using this to incorportate into jsp page so user can select valuse from the dropdown menu which comes from the Collection object so
USERID Collection ---> Dropdown menu---->let user Select it and ---> return result based of chosed Id....
Help will be greatly appriciated
Thanks
 
Stephen Huey
Ranch Hand
Posts: 618
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey man, you need to learn to use Google--my search terms were:
java populate drop down
There are tons of pages out there with sample code showing how to do this, and many at Javaranch as well (always search before posting):
http://www.coderanch.com/t/348357/Servlets/java/populate-drop-down-listbox
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic