Home > Web Front-end > HTML Tutorial > The picture cannot be displayed_html/css_WEB-ITnose

The picture cannot be displayed_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:16:18
Original
987 people have browsed it

The problem is as follows:
1. I can upload images and transfer them to a folder image I created under the tomcat server.
2. I didn’t find the image in the project, which is WebRoot-image.
3. The problem now is that the path of the image on the server is saved in my database, and jsp displays the image in the project directory, but what I upload is sent to the server, so I want to say how to display it on the jsp page,


Reply to the discussion (solution)

If you upload to the server without saving the path, your uploaded image cannot be found. You must save the path when uploading the image, whether it is in a database or a file. If you write a static page, then write the absolute path of the image you uploaded

Get the server path address and put it above the src on the jsp

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template