File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes how to not display a value from dropdown which is populated from database using java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "how to not display a value from dropdown which is populated from database using java" Watch "how to not display a value from dropdown which is populated from database using java" New topic
Author

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

Swathi Choudary
Greenhorn

Joined: Mar 10, 2011
Posts: 4
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

Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18570
    
    8

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

Joined: Mar 10, 2011
Posts: 4
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
Bartender

Joined: Oct 14, 2005
Posts: 18570
    
    8

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.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61217
    
  66

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?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Swathi Choudary
Greenhorn

Joined: Mar 10, 2011
Posts: 4
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 agree. Here's the link: http://aspose.com/file-tools
 
subject: how to not display a value from dropdown which is populated from database using java