-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Nikita,

On 4/8/2010 4:03 PM, Nikita Tovstoles wrote:
> Response.java in Tomcat src: 
> http://kickjava.com/src/org/apache/catalina/connector/Response.java.htm

Hmm... a non-Apache site without a version reference? :(

How about
http://svn.apache.org/repos/asf/tomcat/tc6.0.x/tags/TOMCAT_6_0_26/java/org/apache/catalina/connector/Response.java

Looks like the toAbsolute() method for a relative location returns an
unchanged location. Heh.

> but I am not clear on why doesn't Tomcat collapse those URLs in 
> Response.toAbsolute()?

Because Tomcat is not required to do so?

I agree with Davis's assertion that context-relative paths are always
the right way to go. The spec, API, and basically every tool for use
with servlets steers you in that direction.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAku+UaoACgkQ9CaO5/Lv0PBj6ACfXsWfGpfm9BGTrXXudfYmx3WD
gTYAniQtuKTYjsQFUTSWQb9I2XgTPNvL
=Vl8Z
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to