I am trying to include "<CONTAINS>" in the building of a query string but no matter what I try I can not get the browser to recognize it.
This Line: query = query + " AND CATEGORY<CONTAINS> (" + categoryQuery + ")"; If the categoryQuery = "ALL" The result would be as follows: CATEGORY(ALL) As you see it completely ingnores the <CONTAINS> or anything that is inclosed by <> //Category // If query is more than one word if (envCategory.length() > 0) { StringTokenizer st=new StringTokenizer(envCategory); //break the string up so that individual words in the query are now delimited by commas (implied accrue) while (st.hasMoreTokens()){ String tmpToken=st.nextToken(); categoryQuery=categoryQuery + tmpToken + "," ; } //trim off the trailing "," categoryQuery=categoryQuery.substring(0,categoryQuery.length()-1); if (query.length() > 0) { query = query + " AND CATEGORY<CONTAINS> (" + categoryQuery + ")"; } else { // query=categoryQuery; // query = "<ACCRUE> (CATEGORY<CONTAINS>\"" + query + "\", CATEGORY<CONTAINS>\"" + query + "\"<AND> Home, CATEGORY<CONTAINS>\"" + query + "\",[20]('" + query + "'))"; } } ; [EMAIL PROTECTED] ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html