SpringMVC中的请求路径
request.getServletPath():/OrderController/getOrders.mmx
request.getContextPath():/projectName
request.getRequestURL():http://127.0.0.1:8080/projectName/OrderController/getOrders.mmx
jsp中的请求路径
pageContext.request.contextPath:${pageContext.request.contextPath}<br>
pageContext.request.contextPath:/projectName
request.getServletPath():/order/queryOrder.jsp
request.getContextPath():/projectName
request.getRequestURL():http://127.0.0.1:8080/projectName/order/queryOrder.jsp
request.getRemoteAddr():127.0.0.1
request.getServletContext():org.apache.catalina.core.ApplicationContextFacade@1db2215
request.getServerPort():8080
request.getScheme():http
request.getServerName():127.0.0.1
request.getProtocol():HTTP/1.1
request.getPathInfo():null
request.getQueryString():null
request在js和jsp中获取路径方面的方法
最新推荐文章于 2022-08-01 09:09:39 发布