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 Pathing issues on Tomcat 4.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "Pathing issues on Tomcat 4.0" Watch "Pathing issues on Tomcat 4.0" New topic
Author

Pathing issues on Tomcat 4.0

Michael Crutcher
Ranch Hand

Joined: Feb 18, 2002
Posts: 48
I have a webapp whose images stubbornly refuse to show up. Here's a map of the relevant files:
CATILINA_HOME/webapps/thiswebapp/
Login.html
Index.html
some JSP's
CATILINA_HOME/webapps/thiswebapp/images/
All the image files used on the html pages
What's wierd is that none of my html sees the images. I've tried every kind of naming I can think of. If you right click on a picture that has it's path set as a relative value the path evaluates to the correct name. Is this the way the tag should look in my html?
<img src="images/sabtart_07.gif">
If you turn tomcat off and just open up the html the images display fine. I'm sure I'm doing something stupid, and any help would be appreciated.
Thanks,
Michael Crutcher
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 14480
    
    7

Have you tried looking at your Tomcat logfiles?


Customer surveys are for companies who didn't pay proper attention to begin with.
Arun Boraiah
Ranch Hand

Joined: Nov 28, 2001
Posts: 233
Hi
Try this
place your html and jsp's inside a folder inside 'thiswebapp' folder created by you(same level has 'images' folder).
Give this path in your html or jsp "../images/ImageFileName".
This should work
-arun


Sharing is learning
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Pathing issues on Tomcat 4.0
 
Similar Threads
Uploading images to webapp/images folder
question about JSP - Tomcat
Need Help
how to install tomcat 5.5 in windows vista
Requested resource is not available - how to correct