• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

Absolut path in form  RSS feed

 
Ranch Hand
Posts: 1187
3
Java Netbeans IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

would works when I put a absolute path like this : https://media.xxxxx.net/development/subscribe.php in a form ?

Regards, Isaac
 
Saloon Keeper
Posts: 5025
134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What happened when you tried it?
 
Isaac Ferguson
Ranch Hand
Posts: 1187
3
Java Netbeans IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The problem is that I cant tried...
 
Tim Moores
Saloon Keeper
Posts: 5025
134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why not? Surely you can run a server on your development machine and use an absolute URL to localhost or 127.0.0.1 in the form.
 
Bartender
Posts: 3648
16
Firefox Browser Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you use absolute path, that path guarantees to work.

For relative path, the page you want to load is relative from your current page. If it's in subfolder:


If it's in another folder in parent folder (the .. means go back up one level the parent folder)



If you do this "/somefolder" or "/somepage", it's from the root of the domain not the (java web) app you are in.
 
Marshal
Posts: 67162
169
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear in mind that using page-relative URLs is strongly discouraged as fragile and error-prone. Rather, server-relative URLs that start with the context path are recommended.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!