`
遠大前程
  • 浏览: 7462 次
  • 性别: 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()
分享到:
评论

相关推荐

    jstl-quick-reference.pdf

    - **pageContext**:当前JSP页面的上下文对象。 - **pageScope**:页面范围内的变量,只在当前页面有效。 - **requestScope**:请求范围内的变量,对于一次请求有效。 - **sessionScope**:会话范围内的变量,在用户...

    适合初学者的zk开发文档pdf

    这些对象包括`applicationScope`、`arg`、`componentScope`、`desktop`、`desktopScope`、`each`、`event`、`execution`、`forEachStatus`、`page`、`pageContext`、`pageScope`、`requestScope`、`self`、`session`...

    spring标签使用

    Spring 的表单标签库与 Spring Web MVC 集成在一起, 使标签可以使用命令对象(command object)和你的控制器处理的参考数据(reference data)。这样,让 JSP 更易于开发、阅读和维护。 配置 Spring 的表单标签库...

    java三级题库

    - 其中包括9大内置对象:request、response、pageContext、session、application、out、config、page和exception。 - `<jsp:include>`动作可以在运行时动态包含内容,而`”relativeURI”%>`则是在编译时静态包含。...

    JAVA面试题全集

    - 确定 JSP 文件的真实路径可以使用 `pageContext.getRealPath("/")`。 4. **Cookie与Session的作用** - Cookie 存储在客户端,用于跟踪用户信息。 - Session 存储在服务器端,用于维护用户的会话状态。 - ...

    java 面试题 总结

    JAVA相关基础知识 1、面向对象的特征有哪些方面 1.抽象: 抽象就是忽略一个主题中与当前目标无关的那些方面,以便更充分地注意与当前目标有关的方面。抽象并不打算了解全部问题,而只是选择其中的一部分,暂时不用...

Global site tag (gtag.js) - Google Analytics