Eclipse can't find my image file when generating HTML
I'm trying to reference an image in a Java web project using the following code:
However, no matter where I try placing the test.jpg file, I just can't seem to reference it as I get a broken image. Here are a few of the places I've tried placing it:
- Directory (the project)
- Directory > resources
- Directory > WebContent
- Directory > WebContent > resources
Am I doing something wrong? If I manually try referencing the image from a browser, I just get the same main project page again:
I'm working with Eclipse 3.4.1 and using XAMPP + Tomcat in a Windows XP Pro SP3 environment. The Java project I'm working on works just fine, but I just cannot seem to find out how to reference external images or other files (CSS, XSL, etc).
Any help would really be appreciated! I'm a PHP developer by trade, so this is fairly frustrating.