Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Absolut path in form

 
Isaac Ferguson
Ranch Hand
Posts: 1032
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
Bartender
Posts: 3134
50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What happened when you tried it?
 
Isaac Ferguson
Ranch Hand
Posts: 1032
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
Bartender
Posts: 3134
50
  • 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: 3585
16
Android Java
  • 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
Pie
Posts: 65335
97
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