当前位置: 代码迷 >> Web前端 >> pageContext的findAttribute()与getAttribute()的差异
  详细解决方案

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

热度:75   发布时间:2012-09-05 15:19:34.0
pageContext的findAttribute()与getAttribute()的区别
pageContext.findAttribute:先在page scope里找,如果找不到就到request scope里,再找不到就到session scope(if valid)里找,再找不到就到application scope(s)里找,再找不到就返回null。

pageContext.getAttribute:只在page scope里找,如果找不到就返回null。
  相关解决方案