摘要: 以工程名为/DemoWeb为例: 访问的jsp为: http://localhost:8080/DemoWeb/test/index.jsp 1 JSP中获得当前应用的相对路径和绝对路径 (1)得到工程名:request.getContextPath() 结果:/DemoWeb (2)得到包含工程名 阅读全文
posted @ 2016-08-30 16:39 yzuzhang 阅读(2302) 评论(0) 推荐(0) 编辑