用servlet上传图片  路径为filePath 
String path = "/update/"+filename;
String savePath = this.getServletConfig().getServletContext().getRealPath("");
filePath = savePath + path;
文件确保存在了weblogic的缓存目录下在jsp页面显示图片  
String path = request.getContextPath();
<%=path + dt.getPath()%>
这里取的也是缓存目录下的文件   当应用重启时 清除掉了缓存文件   保存的图片没了  当我把项目路径写死 保存在weblogic的项目路径下时 jsp页面显示图片的路径也写死 为何显示不出来图片?