• Post Reply Bookmark Topic Watch Topic
  • New Topic

Absolut path in form  RSS feed

 
Isaac Ferguson
Ranch Hand
Posts: 1056
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
 
Tim Moores
Saloon Keeper
Posts: 3569
77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What happened when you tried it?
 
Isaac Ferguson
Ranch Hand
Posts: 1056
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: 3569
77
  • 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.
 
K. Tsang
Bartender
Posts: 3639
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.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65899
135
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!