wood burning stoves 2.0*
The moose likes Servlets and the fly likes encodeURL not working in servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "encodeURL not working in servlet" Watch "encodeURL not working in servlet" New topic
Author

encodeURL not working in servlet

Vijay Kashyap
Ranch Hand

Joined: Jul 30, 2001
Posts: 74
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).]
nan sh
Ranch Hand

Joined: Jan 05, 2001
Posts: 167

try
"LINK://examples//MyServlet"


Have you tried this Mock Exam Testing Engine yet?<br /><a href="http://www.mycgiserver.com/~nan111/index.html" target="_blank" rel="nofollow">www.mycgiserver.com/~nan111/index.html</a>
 
Don't get me started about those stupid light bulbs.
 
subject: encodeURL not working in servlet
 
Similar Threads
encodeURL() not working ??
URL rewriting not working
Url encoding and Url rewriting terminology confusion
Url Rewriting in new browser window
a question about sessions ...