JSP的九个隐含对象
|
日期:2008年3月19日 作者: 查看:[大字体
中字体 小字体]
|
3.能够取得请求HTTP 标头的方法 String getHeader(String name) 取得name 的标头 Enumeration getHeaderNames() 取得所有的标头名称 Enumeration getHeaders(String name) 取得所有name 的标头 int getIntHeader(String name) 取得整数类型name 的标头 long getDateHeader(String name) 取得日期类型name 的标头 Cookie [] getCookies( ) 取得与请求有关的cookies 4.其他的方法 String getContextPath( ) 取得Context 路径(即站台名称) String getMethod( ) 取得HTTP 的方法(GET、POST) String getProtocol( ) 取得使用的协议 (HTTP/1.1、HTTP/1.0 ) String getQueryString( ) 取得请求的参数字符串,不过,HTTP的方法必须为GET
上一篇:<jsp-config>标签使用详解
下一篇:JSP与MySQL交互的中文乱码解决方案
|
| 相关文章: |
|
|
|
| 相关软件: |
|
|
|