当前位置: 编程技术>java/j2ee
JSP request(return String)用法详例
来源: 互联网 发布时间:2014-10-17
本文导语: 1.JSP代码 : 代码如下: JSP Page get Scheme: get Protocol: get Remote Address: get Remote Host: get Server Name: get Server Port: get Header: get Method: get Request's URL: get Request URI: get Request Session ID: 2.输出: get Scheme: http get Protocol: H...
1.JSP代码 :
JSP Page
get Scheme:
get Protocol:
get Remote Address:
get Remote Host:
get Server Name:
get Server Port:
get Header:
get Method:
get Request's URL:
get Request URI:
get Request Session ID:
2.输出:
get Scheme: http
get Protocol: HTTP/1.1
get Remote Address: 0:0:0:0:0:0:0:1
get Remote Host: 0:0:0:0:0:0:0:1
get Server Name: localhost
get Server Port: 8084
get Header: Mozilla/5.0 (Windows; U; Windows NT 6.0; zh-CN; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3
get Method: GET
get Request's URL: /Requests.jsp
get Request URI: /TestRequest/Requests.jsp
get Request Session ID: 6EF4EB4A3FE39A15EEBD4D46FBD0BA32
代码如下:
JSP Page
get Scheme:
get Protocol:
get Remote Address:
get Remote Host:
get Server Name:
get Server Port:
get Header:
get Method:
get Request's URL:
get Request URI:
get Request Session ID:
2.输出:
get Scheme: http
get Protocol: HTTP/1.1
get Remote Address: 0:0:0:0:0:0:0:1
get Remote Host: 0:0:0:0:0:0:0:1
get Server Name: localhost
get Server Port: 8084
get Header: Mozilla/5.0 (Windows; U; Windows NT 6.0; zh-CN; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3
get Method: GET
get Request's URL: /Requests.jsp
get Request URI: /TestRequest/Requests.jsp
get Request Session ID: 6EF4EB4A3FE39A15EEBD4D46FBD0BA32