• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem displaying images  RSS feed

 
Sudha Deshmukh
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I was working on a web-application with Tomacat 4.0. I have placed all the images for the application in a directory called images in the root directory.I want to display the images in an index.jsp file and I have specfied:
<img src="images/logo.jpg" width=20 height=20 algn="right">
The rest of the application works fine but none of the images are beig displayed.Some one please help me solve this problem.

Thanks
Sudha.
 
Roy Ben Ami
Ranch Hand
Posts: 732
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try
<img src="/images/yourimage" .....
add a / (slash) before the images to indicate its realtive directory.
hope that works.
 
Sudha Deshmukh
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Its Working. thanks Roy
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!