各种情况下获取web工程的路径
摘要:根据jsp, servlet, 普通类,可以把获得web工程的路径方法分为3种1.jsp<%=application.getRealPath("") %><%=request.getRealPath("") %>2.servlet(当然包括了action等,只要能获得servlet) servletContext.getRealPath("");3.普通类 System...
阅读全文
posted @ 2009-12-23 15:52