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 Multiple values from Jlist to multiple columns selection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Multiple values from Jlist to multiple columns selection " Watch "Multiple values from Jlist to multiple columns selection " New topic
Author

Multiple values from Jlist to multiple columns selection

Sandeep Swaminathan
Ranch Hand

Joined: Apr 23, 2008
Posts: 52
I have a jlist and when i select single or multiple values from it i must get it substituted as column names

example ,
A,B,C,D,E are jlist values . So if i select A and B from jlist the statement should be like "select A, B from ABCDE"

What to do?


Music is all around us. All you have to do is just LISTEN to it,
Sandeep Swaminathan
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 29241
    
139

You would build the SQL statement by concatenating strings.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Multiple values from Jlist to multiple columns selection
 
Similar Threads
hows can i retrieve the values from a multiple select list in a jsp??
getting result in textfield using jlist
How to store and bind to the view containing multiple values for single field?
Display selected item in JList
multiple select dropdown