为什么 JSP 就是获取不到 请求信息 比如Request URL,Host,Referer,Content-Language等
比如我在jsp 用
<%= request.getRequestURL() %>
或者 <%= request.getServletPath() %>
都不是
显示的是 xxx.jsp,而不是上图中的 Request URL 地址
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
你为啥把request url给抹掉,,,
都不是,,而不是这是什么句式。
这是javaee6 API里面的一句话,具体可以参见getRequestURL-API