Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

(another) path problem

 
miguel lisboa
Ranch Hand
Posts: 1281
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
my inserts where made using php, and images where referenced using a relative path like: img/myImage.jpg

i tried locating img folder inside jsp folder, classes folder but neither worked
i wonder where i should have my img folder relative to my jsp (or servlet)

TiA
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65542
110
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See http://www.coderanch.com/t/363648/Servlets/java/css-path.

The same answer applies. Do not use URL-relative addressing.

Closing this as it's the same question/issue.
[ November 19, 2006: Message edited by: Bear Bibeault ]
 
I just had the craziest dream. This tiny ad was in it.
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!