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

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 +
"\" METHOD=POST>");

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

Joined: Mar 22, 2005
Posts: 39570
    
  27
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 ]

Ping & DNS - updated with new look and Ping home screen widget
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: url rewriting
 
Similar Threads
Maintaining Session using Rewriting URL
URL Rewriting and Struts
JSP/form/servlet - session persistence ?
JMeter and JSF
Reg URL rewriting