无法找到图像文件在jsp页面中的确切位置 [英] unable to locate exact location of image file in jsp page

查看:199
本文介绍了无法找到图像文件在jsp页面中的确切位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通过java编码将文件保存在一个名为files的文件夹中。
和在我的jsp页面,我想显示该图像使用
< img alt =src =$ {pageContext.request.contextPath} / files / IMG168。 jpg> 但图像不显示!可能是什么原因。



请参阅下面的图片,并为我的问题提出解决方案。 $ b



解决方案

您应该将<$ c在code> WebContent 目录下的$ c> files 文件夹。


i am saving my images through java coding in a folder called "files". and in my jsp page i am trying to display that image using <img alt="" src="${pageContext.request.contextPath}/files/IMG168.jpg"> But the image is not displaying! What could be the reason.

Please see the below images and suggest me solution for my problem.

解决方案

You should put the files folder in WebContent directory.

这篇关于无法找到图像文件在jsp页面中的确切位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆