Search code examples
url-rewritingsession-cookiessession-management

encodeURL() example?


Can anyone direct me to a simple example (of code) showing the use of response.encodeURL()? All of my seaches (both google and stackoverflow) only supply the difference between encodeURL() and encodeRedirectURL().

I'm looking for some simple code showing how it would be implemented to embed session information in a link.

Thanks, Jeff


Solution

  • Check those links:

    Some background information:

    http://www.coderanch.com/t/366059/Servlets/java/encodeURL-purpose-place

    Code sample:

    http://www.javadocexamples.com/javax/servlet/http/HttpServletResponse/encodeURL%28String%20url%29.html