The Artima Developer Community
Sponsored Link

Java Buzz Forum
Difference between HttpServletResponse.encodeURL and encodeRedirectURL

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Mike Kaufman

Posts: 125
Nickname: mkaufman
Registered: Jan, 2007

Mike Kaufman started programming in 1973 and is still here.
Difference between HttpServletResponse.encodeURL and encodeRedirectURL Posted: Feb 24, 2007 12:32 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Mike Kaufman.
Original Post: Difference between HttpServletResponse.encodeURL and encodeRedirectURL
Feed Title: Closing Braces
Feed URL: https://closingbraces.net/feed/
Feed Description: After-hours notes and opinions on Java and system development.
Latest Java Buzz Posts
Latest Java Buzz Posts by Mike Kaufman
Latest Posts From Closing Braces

Advertisement
The only actual difference between the HttpServletResponse encodeURL and encodeRedirectURL methods, at least in the Tomcat and Glassfish reference implementations, seems to be when actually inserting a sessionID into an empty-string URL. For an empty-string URL, the encodeURL method inserts the session ID into the equivalent absolute URL rather than using the given empty string, whereas the encodeRedirectURL method treats empty-string URLs the same way as any other URL. The reference implementation source code justifies this with the comment "W3c spec clearly said" but gives no further details, and the exact reason for this difference remains somewhat unclear.

Read: Difference between HttpServletResponse.encodeURL and encodeRedirectURL

Topic: Get Mule Page from blogredmonk - cote's Tagged Photos Previous Topic   Next Topic Topic: Robot leaves (021507_17171.3g2) for February 20, 2007, 10:10 AM from Videos from YouTube.com

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use