File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

encodeURL not working in servlet

 
Vijay Kashyap
Ranch Hand
Posts: 74
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 167
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

try
"LINK://examples//MyServlet"
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic