Tag: 路径预览模式: 普通 | 列表
08-10
09

JSP中路径问题 图片不显示

if u use <img src="/test.gif">, u should put the test.gif in webapps/Root/ folder, so that, i suggest that to write <img src="<%=request.getContextPath()%>/test.gif">!

and if u wanna use the Root folder for ur webapp.
Just delete the Root folder. and write as before.

查看更多...

Tags: JSP 路径 TOMCAT

分类:Java&Jsp | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 1020