Attaching an image to JSP page

Should be a simple question, but after an hour of

googling I still can't seem to correct my problem...

Heres the stripped down thing of what i'm doing:

<%@ taglib prefix="c"

uri="http://java.sun.com/jsp/jstl/core" %>

<%@ taglib prefix="sql"

uri="http://java.sun.com/jsp/jstl/sql" %>

<%@ taglib prefix="a" tagdir="/WEB-INF/tags"%>

<html>

<body><table id="centralcolumn"

align="center"><tr id="headerrow"><td

colspan="2"><div align="center"><a

href="index.html"><img src="header2.png"

alt="Nick Richards PC Support" width="1024"

height="107" border="0"></a></div>

header2.png refuses to show up.

My site is located in C:\Program Files\Apache

Software Foundation\Tomcat 5.5\webapps\ROOT, and

the header2.png (correct case) is in that

directory. I have also copied it to WEB-INF, no

avail...

any ideas?

Thx

Nick

[1032 byte] By [nickatbristola] at [2007-10-2 19:55:17]
# 1
where is your jsp that has the png located?
jgalacambraa at 2007-7-13 22:34:32 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Right click the red "x" you have for the image, and select properties.That will show you the URL where it is looking for the image, and might give you a hint with why it is wrong.
evnafetsa at 2007-7-13 22:34:32 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

Hi,

When I right click on the pic it says it is trying to find:

http://localhost/header2.png

The page i'm viewing is http://localhost/data.jsp

The actual pic is located in the SAME directory i.e. C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\ROOT as the data.jsp (the jsp page i'm viewing) itself, and in an \images dir also at C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\ROOT\images

Thanks much for help, need a swift reply if possible :(

Many thanks,

Nick

Message was edited by:

nickatbristol

nickatbristola at 2007-7-13 22:34:32 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
Fixed the problem. It didn't like PNG images, I just re-saved as JPG and it worked.
nickatbristola at 2007-7-13 22:34:32 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...