Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Where do I need to put my "images" folder in Eclipse project? (Where do I need to put my "images" folder in Eclipse project so that images appear when I run my html page?)
Where do I need to put my "images" folder in Eclipse project? [message #942599] Sat, 13 October 2012 13:38 Go to previous message
Dusan Cankovic is currently offline 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
 
Read Message
Read Message
Previous Topic:unable to launch scrapbook vm
Next Topic:Starting Eclipse Juno SR1 on OpenSuse 12.2 64 bit
Goto Forum:
  


Current Time: Fri May 24 16:12:49 EDT 2013

Powered by FUDForum. Page generated in 0.01700 seconds