Home > Article > Web Front-end > Why can't the loaded image be displayed on the IE web page for the jsp page I wrote? _html/css_WEB-ITnose
JSP Eclipse picture
I used Eclipse to build a dynamic website. In the jsp file I wrote, a picture was loaded, which can be displayed in the browser that comes with eclipse, but cannot be displayed normally in IE. Why?It’s impossible (it works well in IDE, but it can’t be displayed when opened with IE on the server?), how do you write the image path
Write the absolute path directly! Some of my classmates can display it. Is it an IE setting problem?
If you put it in the img folder under the WebContent directory, how should you write the path, aac53516bdb2e35832878eec5d2cce08???
Try it
<img src="${pageContext.request.contextPath}/img/1.jpg" />
/ Root directory
../ Parent path
./ Current Path