`
遠大前程
  • 浏览: 7420 次
  • 性别: Icon_minigender_1
  • 来自: 广州
最近访客 更多访客>>
社区版块
存档分类
最新评论

PageContext Reference

阅读更多
Using a PageContext reference to get attributes from any scope,including the page scope for attributes bound to the PageContext.The methods that work with other scopes take an int argument to indicate the scope.Although the attribute access methods come from the JspContext,you'll find the constants for the scopes inside the PageContext class.

JspContext

getAttribute(String name)
getAttribute(String name,int scope)
getAttributeNamesInScope(int scope)
findAtrribute(String name)

Constants in PageContext

APPLICATION_SCOPE
PAGE_SCOPE
REQUEST_SCOPE
SESSION_SCOPE

methods in PageContext
getRequest()
getServletConfig()
getServletContext()
getSession()
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics