This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Servlets and the fly likes URL Rewriting Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "URL Rewriting" Watch "URL Rewriting" New topic
Author

URL Rewriting

Nidhi Singhal
Ranch Hand

Joined: Sep 19, 2004
Posts: 89

Hi all,
I want to track session using url rewriting. I have cookies support disabled on my browser. Please give an example of how to perform url rewriting in servlets. Also I want to know what is the difference between EncodeURL and EncodeRedirectURL.
Thanks...
-Nidhi
anupa oru
Ranch Hand

Joined: Jan 15, 2005
Posts: 118
Hi,
in case of encodeURL requested URL is appended with session id for each request,encodeRedirectURL is equvalent to sendRedirect when cookies won't supported in client machine.
Thanks
Anupa
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: URL Rewriting
 
Similar Threads
about getRequestDispatcher() ?
JSP/form/servlet - session persistence ?
enforcing URL rewriting in Tomcat
URL rewriting ?
redirecting the request to URL