Valter Silva
Valter Silva

Reputation: 16656

Web Development: Cannot load an image

i'm starting to using the new version of Eclipse , version 3.7 (Eclipse Indigo). My problem is simple, i'm developing in JSF 2.0 using GlassFish 3.0 as a server, if i try:

<img src="./images/services/1.jpg" alt="" /> <!-- it work -->
<img src="./images/about_us/1.jpg" alt="" /> <!-- it not work -->

Structure of the project:

How the project is structured

I really don't understand why this is happening folks. Any idea ?

Best regards, Valter Henrique.

Upvotes: 0

Views: 229

Answers (2)

Valter Silva
Valter Silva

Reputation: 16656

My problem was that I was working with Netbeans before and now I'm starting to working with Eclipse (Indigo version).

My solution was refresh my project, I didn't know I have to do this, I used netbeans before, where is not necessary do this kind of operation.

Upvotes: 0

regilero
regilero

Reputation: 30496

Well, did you try to respect the case of the filenames?

<img src="./images/about_us/1.jpg" alt="" /> <!-- does not work -->
<img src="./images/about_us/1.JPG" alt="" /> <!-- should work -->

So as said in comments, this was not the reason and this is in fact not the good answer. It was a refreshing problem.

Upvotes: 1

Related Questions