File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Servlets
Bookmark "url rewriting" Watch "url rewriting" New topic

url rewriting

kedar parundekar
Ranch Hand

Joined: May 10, 2006
Posts: 40
In case of URL rewriting we required following statement:

// Include the session ID in the action URL.
out.println("<FORM ACTION=\"/servlet/ShoppingCart/" + sessionid +

Q: what is meaning of backword slash in URL? why we required that?
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
The backslash escapes the following double quote, which -since this is a Java string- would otherwise terminate the string literal. It causes a literal " to be inserted into the string.
[ July 04, 2006: Message edited by: Ulf Dittmer ]
I agree. Here's the link:
subject: url rewriting
It's not a secret anymore!