• Post Reply Bookmark Topic Watch Topic
  • New Topic

url sometimes we use / or \ difference

 
sai prasanna
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 65519
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!