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, ???
Try it
<img src="${pageContext.request.contextPath}/img/1.jpg" />
/ Root directory
../ Parent path
./ Current Path