Cataclysm
Cataclysm

Reputation: 8578

How to use image from Apache HTTP server?

I create static web project from Eclipse IDE and run with Apache HTTP Server Version 2.4. I can open it from my browser as below screenshoot.

enter image description here

Next , I create a dynamic web project from eclipse IDE and use image from my HTTP server as

<img  width="150px" height="150px" src="localhost:122/static-project/images/avatar.png">

And then run with apache Tomcat8 server.But the image is not show, when I inspect with firebug plugin there has no 404 error for image. I copied src value of image and open with new tab of browser , it is ok. Image show in new tab correctly. What is the problem ?

Upvotes: 0

Views: 2125

Answers (1)

Must be corrected as :

<img width="150px" height="150px" src="http://localhost:122/static-project/images/avatar.png">

Upvotes: 1

Related Questions