Originally posted by Vasim Patel:
I also understand that this is for security reasons.
URL encoding is generally not used to encode it for the user's eyes.
Not all characters are allowed in a url, like the space.
This is an invalid url:
http://localhost/My Testpage.jsp
To get a valid url, you have to replace the space by it's encoding:
http://localhost/My%20Testpage.jsp Also think about parameters with characters which would cause problems:
http://localhost/show.jsp?type=bed&breakfast Your
jsp will get two parameters:
type=bed and breakfast=
instead of
type=bed&breakfast
So you have to encode the & character.
Regards,
Arjan