web中的几种路径
web中的几种路径:
servletContext.getRealPath("/"),这个是得到应用的绝对路径,比如:F:\apache-tomcat-5.5.17\webapps\baiyao\
request.getServletPath()这个是得到引用的路径,但是不包括应用名,比如/workflow/proposal/proposal_input.jsp
request.getRequestURI()这个是相对web应用的页面路径(包括应用名),比如/baiyao/workflow/proposal/proposal_input.jsp
相关推荐
82550698 2020-11-09
mnm0 2020-11-08
workflow 2020-03-03
Charliewolf 2020-01-10
86256839 2019-12-07
87347969 2018-11-04
workflow 2014-05-26
86256839 2013-11-19
82550698 2013-10-26
86256839 2013-10-15
workflow 2013-08-15
80276730 2013-08-15
80276730 2013-08-13
87347969 2013-08-13
workflow 2013-08-13
mnm0 2013-08-07
87347969 2013-08-07
87347969 2013-06-03
nychen000 2013-06-03