jsp中隐含对象

本文主要是对jsp中银行对象的简单介绍:

1.pageContext

2.pageScope,requestScope,sessionScope, applicationScope

3.param, paramValues

4.header, headerValues

5.cookie

6.initParam

1.pageContext :http://download.oracle.com/javaee/1.4/api/javax/servlet/jsp/PageContext.html#getRequest%28%29

2.pageScope,requestScope,sessionScope, applicationScope

这几个对象是用来存取对应范围之内的变量的值。

3.param和paramValues

提取rerquest对象中的值。

4.header, headerValues

去得request中header信息。

5.cookie

6.initParam

去得web.xml中自定义的参数。例如在web.xml文件中定义:

代码:

如何使用?

posted @ 2010-10-12 10:49  qiang.xu  阅读(190)  评论(0编辑  收藏  举报