• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how to not display a value from dropdown which is populated from database using java

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can somebody help me how to not display a value from dropdown which is populated from database using java. Lets say the value is 'ABC'
Here is my code for populating from the database

 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
But you have only showed us the code for extracting values from the database. If you have a question about how to modify your code which displays values, shouldn't you be showing us that code?
 
Swathi Choudary
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Paul Clapham wrote:But you have only showed us the code for extracting values from the database. If you have a question about how to modify your code which displays values, shouldn't you be showing us that code?



Yes, This is for extracting values from data base but after extracting the values from data base, I wanted a particular value not be displayed. Let say the value is 'ABC'. So can you please help me with writing the code for it.
 
Paul Clapham
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No, because (as I already said) I have no idea how you are "displaying" the values you got from that code. Swing? HTML? System.out.println?

It seems to me you don't have a problem with JDBC, you have a problem with this mysterious "displaying" which you refuse to tell us about.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This almost seems like trick question. If you don't want a value in the list, why are you putting it there in the first place?
 
Swathi Choudary
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Bear Bibeault wrote:This almost seems like trick question. If you don't want a value in the list, why are you putting it there in the first place?




We get the same list for multiple pages, for some of them they need full list for the dropdowns and for a few pages we want just one value from the dropdown no to be displayed.
 
I like you because you always keep good, crunchy cereal in your pantry. This tiny ad agrees:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic