| 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: 16482
|
|
|
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: 16482
|
|
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: 56169
|
|
|
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?
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About 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.
|
 |
 |
|
|
subject: how to not display a value from dropdown which is populated from database using java
|
|
|