File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to force URL Rewriting

 
amit punekar
Ranch Hand
Posts: 544
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a scenario wherein I want to force the encoding of a URL so that response.encodeURL() appends the sessionid to it.
At the moment this API is not appending the sessionid which I guess is because session is being tracked by cookies , in which case the API method does not necessarily appends the sessionid.
Is there anyway I can force this to happen?

regds
Amit
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64192
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's not "encoding", that's "rewriting". I suggest you change your subject accordingly.
 
Abhishek Asthana
Ranch Hand
Posts: 146
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are right. response.encodeURL() will append sessionID only if cookies are disabled.
But why do you need to append the sessionID to URL, when you can always pick it up from the session.

Thanks
Abhishek
 
amit punekar
Ranch Hand
Posts: 544
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Bear:
Thanks for pointing out the mistake.

Abhishek:
I want to force the URL rewriting even if cookies are enabled. There is one scenario we have where sessionid as part of URL is needed.

Regds
Amit
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic