The Artima Developer Community
Sponsored Link

Java Answers Forum
URL Rewriting?

2 replies on 1 page. Most recent reply: Sep 21, 2003 10:01 PM by mausam

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
Leela

Posts: 16
Nickname: leee
Registered: Sep, 2003

URL Rewriting? Posted: Sep 19, 2003 11:53 PM
Reply to this message Reply
Advertisement
What is URL Rewriting?

How do we implement the URL Rewriting and when it is to be implemented (For what purpose)?


Senthoorkumaran Punniamoorthy

Posts: 335
Nickname: senthoor
Registered: Mar, 2002

Re: URL Rewriting? Posted: Sep 20, 2003 12:57 AM
Reply to this message Reply
Did you google before posting the question? Anyway,

http://www.sitepoint.com/article/910

The presentation below has two slides on URL Rewriting...

http://developer.java.sun.com/developer/onlineTraining/webcasts/pdf/webcamp/dchen/dchen5.pdf

mausam

Posts: 243
Nickname: mausam
Registered: Sep, 2003

Re: URL Rewriting? Posted: Sep 21, 2003 10:01 PM
Reply to this message Reply
http://www.kfunigraz.ac.at/edvndwww/books/books/javaenterprise/servlet/ch07_03.htm

http://www.orbeon.com/oxf/doc/reference-url-rewriting

URL Encoding is a process of transforming user input to a CGI form so it is fit for travel across the network -- basically, stripping spaces and punctuation and replacing with escape characters. URL Decoding is the reverse process. To perform these operations, call java.net.URLEncoder.encode() and java.net.URLDecoder.decode() (the latter was (finally!) added to JDK 1.2, aka Java 2).

Example: changing "We're #1!" into "We%27re+%231%21"

URL Rewriting is a technique for saving state information on the user's browser between page hits. It's sort of like cookies, only the information gets stored inside the URL, as an additional parameter. The HttpSession API, which is part of the Servlet API, sometimes uses URL Rewriting when cookies are unavailable.

Example: changing <A HREF="nextpage.html"> into
<A HREF="nextpage.html;$sessionid$=DSJFSDKFSLDFEEKOE"> (or whatever the actual syntax is; I forget offhand)

Hope the aliens dont mess with my posting....

Flat View: This topic has 2 replies on 1 page
Topic: dumps Previous Topic   Next Topic Topic: Applet & Serverlet on Linux

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use