令人讨厌的request路径问题
?
//得到相对路径 request.getRequestURI() /MyProject/pages/request.jsp//得到绝对路径 request.getRequestURL() http://localhost:8080/MyProject/pages/request.jsp//得到工程名称 request.getContextPath() /MyProject//得到所在工程的层路径 request.getServletPath() /pages/request.jsp
?