Java路径问题
JSP取路径: //WEB站点根目录 request.getRealPath("/"); application.getRealPath("/"); //WEB站点JSP编译文件目录 String classFile = getClass().getName().substring(getClass().getName().lastIndexOf(".") + 1)+ ".java"; String path = getClass().getResource(classFileName); //当前请求jsp文件路径 String filepath=request.getRealPath(request.getServletPath()); //得到去掉文件名的路径…