标签:
今天研究了一下午,图片显示问题。
jsp中获取绝对路径的方法:
String contextPath = request.getContextPath();
String path = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort() + contextPath;
然后<img src="<%=path%>/.../scene.jpg" />
标签:
原文地址:http://www.cnblogs.com/rixiang/p/5323841.html