Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Pathing issues on Tomcat 4.0  RSS feed

 
Michael Crutcher
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried looking at your Tomcat logfiles?
 
Arun Boraiah
Ranch Hand
Posts: 233
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!