aspose 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
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Reply 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: 16482
    
    2

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
    
    2

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
    
  13

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.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: how to not display a value from dropdown which is populated from database using java
 
Similar Threads
Creating drop down on fly
dropdown
Second call to Struts action
Struts2-requested list key 'state' could not be resolved as a collection/array/map/enumeration/
Why should i turn String to String in arrayList ?