• 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:
  • Campbell Ritchie
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
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
 
Climb the rope! CLIMB THE ROPE! You too tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic