tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jesse Farley <>
Subject anchors and response.encodeURL()
Date Fri, 09 Nov 2001 07:49:58 GMT

I think I may (keyword -> MAY) have discovered a bug.

When using the request.encodeURL("<some url>") to support tracking users 
who have cookies disabled, everything seems to work great, except one 
little quirk I've noticed:

Say you have a jsp page that has anchors in it, say

When calling response.encode("billing.jsp#cycles"), the customary
";jsessionid=<nice long value>" is appended to the url, but
request.isRequestedSessionIdFromURL() returns false and the session
seems to be lost.

Of course, this may be by design; can anyone comment on whether or not
anchors are supported with the encodeURL() method on a HttpRequest object?

Jesse Farley

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message