zoukankan      html  css  js  c++  java
  • JAVA-JSP内置对象之pageContext对象

    相关资料:
    《21天学通Java Web开发》

    pageContext对象
    1.pageContext对象不但可以用来设置page范围的属性,同样也可以用来设置其他范围属性,
    不过需要指定范围参数。通过pageContext对象还可以获得其他内置对象。

    方法                                                                              返回值                    方法说明
    getException()                                                              Exception              获取当前的exception内置对象
    getOut()                                                                       JspWriter               获取当前的out内置对象
    getPage()                                                                     Object                    获取当前的page内置对象
    getRequest()                                                                ServletRequset      获取当前的request内置对象
    getResponse()                                                             ServletResponse    获取当前的response内置对象
    getServletConfig()                                                        ServletConfig         获取当前的config内置对象
    getServeltContext()                                                     ServletContext       获取当前的application内置对象
    getSession()                                                                HttpSession            获取当前的session内置对象
    getAttribute(String name,int scope)                            Object                    获取指定范围的name属性值
    getAttributeNamesInScope(int scope)                         Enumeration          获取指定范围所有属性名称
    getAttributesScope(String name)                                int                           获取属性名称为name的属性范围
    removeAttribute(String name)                                    void                        移除属性名称为name的 属性
    removeAttribute(String name,int scope)                     void                        移除指定范围的属性名称为name的 属性
    setAttribute(String name,Object value,int scope)       void                        设置指定范围的name属性
    findAttribute(String name)                                          Object                    寻找所有范围的属性名称为name的属性

  • 相关阅读:
    自定义Android Toasts风格
    用TAPI实现来电拒接
    压缩与解压缩的实现
    Android之个性化ListView实现
    如何在windows7 Home家庭版中创建Administrator管理员账户
    Android中Intent传递对象的两种方法(Serializable,Parcelable)
    Android模拟器入门
    上海西门子培训第六天(周五)
    上海西门子培训第七天(周六)
    计算机英语学习方法[摘录]
  • 原文地址:https://www.cnblogs.com/FKdelphi/p/7670642.html
Copyright © 2011-2022 走看看