aspose file tools
The moose likes Servlets and the fly likes url sometimes we use / or \ difference Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "url sometimes we use / or \ difference" Watch "url sometimes we use / or \ difference" New topic
Author

url sometimes we use / or \ difference

sai prasanna
Ranch Hand

Joined: May 02, 2005
Posts: 167
hi
response.sendRedirect(url).In this url sometimes we use /(backward slash) or \(forward slash) what is the difference
thanks in advance
saiprasanna
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56549
    
  14

I have never seen a backward slash used in a URL. There may be containers that will automatically switch it the way that Java I/O does for Windows file paths, but I would always use forward slash.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: url sometimes we use / or \ difference
 
Similar Threads
Basic mapping question
Trouble with Struts
url-pattern question
WA #1.....word association
Replace all "." in a string