This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Journey To Enterprise Agility and have Daryl Kulak & Hong Li on-line!
See this thread for details.
Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • 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:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Absolut path in form  RSS feed

 
Ranch Hand
Posts: 1108
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: 4690
117
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What happened when you tried it?
 
Isaac Ferguson
Ranch Hand
Posts: 1108
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: 4690
117
  • 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.
 
Author and ninkuma
Marshal
Posts: 66783
168
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!