首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

pageContext的findAttribute()与getAttribute()的差异

2012-09-05 
pageContext的findAttribute()与getAttribute()的区别pageContext.findAttribute:先在page scope里找,如果

pageContext的findAttribute()与getAttribute()的区别
pageContext.findAttribute:先在page scope里找,如果找不到就到request scope里,再找不到就到session scope(if valid)里找,再找不到就到application scope(s)里找,再找不到就返回null。

pageContext.getAttribute:只在page scope里找,如果找不到就返回null。

热点排行