This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
When sending data by a browser (through query string) it is encoded. Here is what encodeing will do: The ASCII characters 'a' through 'z', 'A' through 'Z', '0' through '9', and ".", "-", "*", "_" remain the same. The space character ' ' is converted into a plus sign '+'. All other characters are converted into the 3-character string "%xy", where xy is the two-digit hexadecimal representation of the lower 8-bits of the character. I beleive to encode your URL you should do something akin to (if both title1 & bkid1 are vars): String String = "http://www.xyz.com/abc/servlet1?bkid=" + URLEncoder.encode(bkid1) + "&title="+ URLEncoder.encode(title1) hope this helps