This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
Hi everybody, I am Chaitanya, I am having a requirement in my application, the application will be sending encrypted links to the registered users. When the user clicks on the link from his mail a new window opens and the userid field will be populated with is id extracted from the encrypted link.
Some times I am getting a '+' symbol in the encrypted link.
When I read the request parameter in the servlet the '+' is being treated as a space.
So what I did is replace all spaces with '+'. It worked fine.
The actual problem is sometimes the encrypted link is too lengthy and is being split in to multiple lines. When the user clicks on it I am getting a '%20' character in the url. So I tried to replace '%20 ' character with ''(null).
But the request.getParameter(String) is taking '%20' character as a space character and is replacing that one also with '+' symbol.