request中url
来源:互联网 发布:卡通艺术字软件下载 编辑:程序博客网 时间:2024/06/06 23:19
1、request.getRequestURL()
返回的是完整的url,包括Http协议,端口号,servlet名字和映射路径,但它不包含请求参数。
2、request.getRequestURI()
得到的是request URL的部分值,并且web容器没有decode过的
3、request.getContextPath()
返回 the context of the request.
4、request.getServletPath()
返回调用servlet的部分url.
5、request.getQueryString()
返回url路径后面的查询字符串
示例:
当前url:http://localhost:8080/CarsiLogCenter_new/idpstat.jsp?action=idp.sptopn
request.getRequestURL() http://localhost:8080/CarsiLogCenter_new/idpstat.jsp
request.getRequestURI() /CarsiLogCenter_new/idpstat.jsp
request.getContextPath()/CarsiLogCenter_new
request.getServletPath() /idpstat.jsp
request.getQueryString()action=idp.sptopn
0 0
- request中url
- java request url中包含#
- JSP中request对象URL方法对照
- JSP中request对象URL方法对照
- request.getQueryString():获取url中包含参数
- JSP request中获取url信息比较
- .Net中Request的url参数说明
- java 从request中获取url
- ASP.NET中Request.RawUrl、Request.Url的区别
- Request.Url
- Request.Url
- Request中有多种方法获取url信息
- JSP开发中request对象URL方法对照表
- JSP开发中request对象URL方法对照表(转)
- 从request中获取上一个请求的url
- 从request中获取上上个请求的url
- ASP.NET MVC在Request中关于URL的参数
- request获取地址url中各个部分的方法
- Strategy----策略模式
- WOai wojiao
- 鸡啄米vc++2010系列38(文档、视图和框架:概述)
- wireshark抓包dhcp
- Displaying Bitmaps Efficiently
- request中url
- 两种高效的事件处理模式
- 倒序输出你输入的正整数
- C++学习 boost学习之-scoped_array
- HTTP和HTTPS详解
- 给TEXTVIEW添加背景吧
- Windows学习篇之---Skype掉线问题
- linux集群性能测试
- 微信公众号开发实现原理