java中如何获得系统路径!(项目的路径)
摘要:
在Application中: System.getProperty("user.dir") 在Servlet中: ServletContext servletContext = config.getServletContext(); String rootPath = servletContext.getRealPath("/"); 在jsp中: application.getRealP... 阅读全文
posted @ 2009-03-18 20:29 意扬 阅读(925) 评论(0) 推荐(0)