I am looking at
http://java.net/jira/browse/SERVLET_SPEC-56
("clarify effect of disabling the use of url rewriting for session
tracking on HttpServletResponse.encodeURL() and
HttpServletResponse.encodeRedirectURL()")
In javadoc of HttpServletResponse#encodeURL, we have the following:
For example, if the browser supports cookies, or session tracking is
turned off, URL encoding is unnecessary.
This is not mentioned in the javadoc of #encodeRedirectURL.
I think the same statement should be added to javdoc of #encodeRedirectURL.
Regards,
Shing Wai Chan