/    Sign up×
Community /Pin to ProfileBookmark

Eclipse help needed, please

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://localhost:8080/MyProject/WebContent/images/garagedoor.jpg

or

src=”http://localhost:8080/MyProject/images/garagedoor.jpg

and that didn’t work either.

I am running my html page on Tomcat 6.0 server.

Please help!
Thanks

to post a comment
HTML

1 Comments(s)

Copy linkTweet thisAlerts:
@NickJohnsonOct 18.2012 — There is a proper eclipse forum site, where your problem will be solved easily. Post there you will definitely get solution........
×

Success!

Help @Icebreaker983 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.20,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...