当前位置: 代码迷 >> Web前端 >> request.getRequestURL()跟request.getRequestURI()区别
  详细解决方案

request.getRequestURL()跟request.getRequestURI()区别

热度:485   发布时间:2012-09-19 13:43:54.0
request.getRequestURL()和request.getRequestURI()区别

request.getRequestURI() /jqueryWeb/resources/request.jsp
request.getRequestURL() http://localhost:8080/jqueryWeb/resources/request.jsp
request.getContextPath()/jqueryWeb
request.getServletPath()/resources/request.jsp


注: resources为WebContext下的目录名
? jqueryWeb 为工程名

  相关解决方案