Get a way in which the path is obtained

xiaoxiao2021-03-06  49

For example: http: // localhost: 7001 / myServlet / SomePath / Test? SomeParam = SomeValue

request.getPathInfo (): returns / somepath / test request.getRequestURL (): http: // localhost: 7001 / myservlet / somepath / test request.getRequestURI (): returns / myservlet / somepath / test request.getServletPath (): returns / myServlet Request.getQueryString (): Return someparam = SomeValue

转载请注明原文地址:https://www.9cbs.com/read-116848.html

New Post(0)