<%
String path = request.getContextPath();
String impath=request.getSession().getServletContext().getRealPath("images/");%>
<td height="147" background="<%=impath %>/top02.gif">[code=Java][
upload.java
 File file=new File(request.getSession(true).getServletContext().getRealPath("image/"+imagename));
/code]
我的webroot下的确有images文件夹,<td height="147" background="images/top02.gif">,可是就是不显示图片,加上<%=impath %>这个才行,
右键图片看路径,得下面的一大串
file:///F:/workspace/.metadata/.plugins/com.genuitec.eclipse.easie.tomcat.myeclipse/tomcat/webapps/51hiptActing/images/ico13.gif别人到那个页面上根本就不显示图片,那我该怎么改?
下面的上传图片功能那也就错了