首页 > 代码库 > Java EE之Request部分方法使用示例
Java EE之Request部分方法使用示例
Description:
ApplicationProjectName:MedicineMs
login.jsp[action:login|method:get] to loginServlet
Output:
request.getAuthType()null
request.getCharacterEncoding()UTF-8
request.getContentLength()-1
request.getContextPath()/MedicineMS
request.getLocalAddr()0:0:0:0:0:0:0:1
request.getLocalName()0:0:0:0:0:0:0:1
request.getLocalPort()8080
request.getMethod()GET
request.getPathInfo()null
request.getProtocol()HTTP/1.1
request.getQueryString()accountNo=staff002&password=12345678
request.getRealPath()D:\Tomcat\MY_WEBAPPS\MedicineMS
request.getRequestURI()/MedicineMS/login
request.getRequestedSessionId()3210E9844068DDD59A7B3DAB0E195393
request.getScheme()http
request.getServletPath()/login
request.getSession()org.apache.catalina.session.StandardSessionFacade@33d55ddc
request.getUserPrincipal()null
Java EE之Request部分方法使用示例