| Where do I need to put my "images" folder in Eclipse project? [message #942599] |
Sat, 13 October 2012 13:38  |
Dusan Cankovic Messages: 1 Registered: October 2012 |
Junior Member |
|
|
I have just started using eclipse for web development, so please help
Where do I need to put my "images" folder in Eclipse project so that images appear when I run my html page?
Example of html code:
<img src="images/garagedoor.jpg" style="max-width:100%; max-height:100%;" id="slika" onclick="onClick_Pocetna()" />
I have tried putting "images" folder in "MyProject/Web Content/" folder, where my html, css, js files are also located, in root of the whole project "MyProject/, in "Java Resources/src/" folder,
and nothing worked so far.
I tried changing the src of html to
src="http(etc)/MyProject/WebContent/images/garagedoor.jpg"
or
src="http(etc)/MyProject/images/garagedoor.jpg"
and that didn't work either.
I am running my html page on Tomcat 6.0 server.
Please help!
Thanks
|
|
|