• 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
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

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
 
Never trust an airline that limits their passengers to one carry on iguana. Put this tiny ad in your shoe:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic