Quote:
Originally Posted by starmandell
|
And I say again: You *WANT* the URL to *APPEAR* like that! IF IT DOES NOT then the URL will *NOT* submit properly to your server!!!
Your JSP page COULD AND SHOULD properly handle that encoding!
In particular, the JSP page should do
Code:
String lightid = request.getParameter("lightId");
and the String that results *WILL* be decoded correctly.
The HTTP specification *REQUIRES* the correct encoding of query string values! If the query string *appears* unencoded in the browser's address bar, that may just be appearance. In point of fact, the query string as it will be sent to the server could and should be encoded.
Basically, any character that could be mistaken to be part of the standard HTTP "meta" information should be encoded. That means / : ? & % space + and more. There is not ANY gurantee that a non-encoded URL is going to work and/or work properly.
ANYWAY...If your JSP code isn't handling that encoding properly, then your JSP code has a bug in it. Period.