開通VIP,暢享免費電子書等14項超值服
首頁
好書
留言交流
下載APP
聯(lián)系客服
2009.03.10
以 Tomcat 服務(wù)器“http://localhost:8080/vote/test.jsp”為例說明:request.getScheme() —— httprequest.getServerName() —— localhostrequest.getServerPort() —— 8080request.getContextPath() —— /voterequest.getProtocol() —— HTTP/1.1request.getRemoteAddr() —— 127.0.0.1request.getRemoteHost() —— 127.0.0.1request.getRemotePort() —— 1316request.getRequestURI() —— /vote/test.jsprequest.getRequestURL() —— http://localhost:8080/vote/test.jsprequest.getServletPath() —— /test.jsp
微信登錄中...請勿關(guān)閉此頁面