沉睡森林@漂在北京

本处文章除注明“转载”外均为原创,转载请注明出处。

  BlogJava :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理 ::
  152 随笔 :: 4 文章 :: 114 评论 :: 0 Trackbacks
URL:http://localhost:8080/greatwall/hi.do?username=1

下面是测试的一些函数值:
request.getPathInfo()=>null
request.getContextPath()=>/greatwall
request.getLocalAddr()=>127.0.0.1
request.getLocalName()=>localhost
request.getLocalPort()=>8080
request.getPathInfo()=>null
request.getQueryString()=>username=1
request.getRealPath("/") =>C:\Program Files\apache-tomcat-6.0.18\webapps\greatwall\
request.getRequestURI() =>/greatwall/hi.do
request.getScheme() =>http
request.getServerName() =>localhost
request.getServletPath() =>/hi.do
request.getRequestURL() =>http://localhost:8080/greatwall/hi.do
posted on 2009-04-30 10:33 王总兵 阅读(306) 评论(0)  编辑  收藏

只有注册用户登录后才能发表评论。


网站导航: