File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes (another) path problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "(another) path problem" Watch "(another) path problem" New topic
Author

(another) path problem

miguel lisboa
Ranch Hand

Joined: Feb 08, 2004
Posts: 1281
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


java amateur
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60046
    
  65

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 ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: (another) path problem
 
Similar Threads
FileIO: java.io.FileNotFoundException
Problem in accessing dynamically created image in <img src=""> tag
Display images on jsp from server using absolute path
changing filename after uploading image
tomcat6: Can't resolve The absolute uri: http://java.sun.com/jsp/jstl/core