本文主要是对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文件中定义:

代码:
<context-param> <description>the author of the website</description> <param-name>developer</param-name> <param-value>jefferyxu</param-value> </context-param>
如何使用?
<body> the developer: ${ initParam.developer } </body>
1843

被折叠的 条评论
为什么被折叠?



