This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes JDBC and the fly likes How to unstring the value separated by comma?. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "How to unstring the value separated by comma?." Watch "How to unstring the value separated by comma?." New topic
Author

How to unstring the value separated by comma?.

Deepa Balasubramanayam
Ranch Hand

Joined: Mar 29, 2001
Posts: 39
Hi,
I am working on a page that does job search.
I have created a textbox and search button. Following is my questions.
1)If the user enters the skills like JAVA,JAVASCRIPT,C++ etc in the textbox how to unstring the skills ?.
2)The user might enter 2 skills or 3 skills or n number of skills separated by comma.How to build the where clause dynamically?.

------------------
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
Use the StringTokenizer class.
------------------
Moderator of the JDBC Forum


Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
Deepa Balasubramanayam
Ranch Hand

Joined: Mar 29, 2001
Posts: 39
Thanks Paul
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: How to unstring the value separated by comma?.