pageContext.findAttribute()与pageContext.getAttribute()的区别
来源:互联网 发布:淘宝自助装机 编辑:程序博客网 时间:2024/05/16 05:09
1、abstract Object findAttribute(String name)
依次在page,request,session(如果有效的话)和application
Scope(范围)查找以name为名的Attribute,找到就返回对象,都找不到返回null。
2、abstract Object getAttribute(String name)
在page scope内查找与name相关的属性,找到返回就返回对象,找不到就返回null。
两种的区别是,查找范围不同。
0 0
- pageContext.findAttribute()与pageContext.getAttribute()的区别
- pageContext.findAttribute()与pageContext.getAttribute()的区别
- pageContext.findAttribute()与pageContext.getAttribute()的区别
- page与pageContext的区别
- ${ctx}与${pageContext.request.contextPath}的区别
- pageContext
- pageContext
- pageContext
- pageContext
- pageContext
- pageContext
- pageContext
- PageContext
- pageContext
- PageContext
- page和pageContext的区别
- JspContext、pageContext等的区别
- ActionContext、ServletContext、pageContext的区别?
- 数据指纹
- 讲义10:视图
- 网页设计大赛第十八天
- WebKit之DOM树构建流程分析
- 查看某个文件所依赖的库文件
- pageContext.findAttribute()与pageContext.getAttribute()的区别
- iOS_计算文本高度
- ros_hydro_OpenCV_kinect_imageconverter
- 仿QQ好友列表分组折叠效果
- 设计模式(十一)策略模式
- 讲义11:索引
- 【大数据】位图算法移位操作的实现
- JSTL的tld文件的一些配置
- 从一道题谈C++中构造函数调用构造函数