<img alt="" src="<%=request.getContextPath()%>/photo/123J42A3-21.gif"> 显示图片是要通过获取根路径显示,否则会出现一把小叉,不能显示图片。