Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

split keyword in searching

Status
Not open for further replies.

yytan

Programmer
Joined
May 8, 2002
Messages
113
Location
MY
hi there;

i am developing a search engine in JSP. i wanted to know if the user key in the search keyword " the JSP reference book " in the textfield. how can i split the sentence " the JSP reference book " in single keyword?

the reason is my db the keyword tbl only contain every single word "keyword" in the field.
 
If I understand you correctly then you are going to want to use the StringTokenizer class to break apart the String. Check Javadocs for more information.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top