首页 > 编程语言 > 详细

Java EE之Request部分方法使用示例

时间:2017-06-11 22:10:38      阅读:322      评论:0      收藏:0      [点我收藏+]

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部分方法使用示例

原文:http://www.cnblogs.com/johnnyzen/p/6986510.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!