Hello,
it seems that I have found a Bug in the response.encodeURL Methode,
and perhaps in the response.encodeRedirectURL.
System: Suse7.1, Tomcat 3.2.2b2 and
Win2k , Jbuilder4 (Tomcat3.2.1).
When I use the encode Methode in a valid session , it will extends the
ending of the URL with the Session.
http://www.bla.blub.com -> http://www.bla.blub.com;jsessionID=gdxcvrtw
Thats fine.
when I use the Methode on a link with GET parameters:
http://www.bla.blub.com?param1=bla¶2=bla ->
http://www.bla.blub.com;jsessionID=gdxcvrtw?param1=bla¶2=bla
that's also fine.
when I use the Methode on a link with GET parameters an a anchor
http://www.bla.blub.com?param1=bla¶2=bla#anchor1 ->
http://www.bla.blub.com;jsessionID=gdxcvrtw?param1=bla¶2=bla#anchor1
thats also fine, too
BUT when I have a Link only with a anchor, it won't be work:
http://www.bla.blub.com#anchor1 ->
http://www.bla.blub.com#anchor1;jsessionID=gdxcvrtw
and this i thing will be pasred wrong, so tomcat think there is no
session.
Some workaround is that you manual set the anchor later:
encURL = response.encodeURL("www.test.com#anchor");
TO
encURL = response.encodeURL("www.test.com") + "#anchor";
--