• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

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

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 618
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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):
https://coderanch.com/t/348357/Servlets/java/populate-drop-down-listbox
reply
    Bookmark Topic Watch Topic
  • New Topic