Forums Register Login

encodeURL not working in servlet

+Pie Number of slices to send: Send
Hi All,
I am little stuck with response.encodeURL() method. Whener I tries to encode a url which starts with '/' it is returning back the original url without encoding sessionid to it, even though cookies are disabled on client browser. But if I remove the '/' sessionid is getting appended to the URL. ( I am 100% sure that cookies are disabled on client side).
Also in JSP's its behaving normally, sessionid getting appended to url irrespective of whether url starts with '/' or not.
Could any body points to me whether encodeURL looks for some specific details while appending sessionid. (I tried encoding this string "LINK:/examples/MyServlet" without success.
I am using Tomcat 3.1.
Regards,
Vijay
[This message has been edited by vijay kashyap (edited December 12, 2001).]
[This message has been edited by vijay kashyap (edited December 12, 2001).]
+Pie Number of slices to send: Send

try
"LINK://examples//MyServlet"
"To do good, you actually have to do something." -- Yvon Chouinard
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 783 times.
Similar Threads
a question about sessions ...
Url Rewriting in new browser window
URL rewriting not working
Url encoding and Url rewriting terminology confusion
encodeURL() not working ??
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 05:15:53.