表达式语言EL(Expression Language)的11个内置对象
程序员文章站
2022-07-13 21:37:16
...
对象名 对象的类型 说明
pageContext javax.servlet.ServletContext 表示此JSP的PageContext
----------------------------------------------------------------------
pageScope Java.util.Map 取得Page范围的属性名称所对应的值
----------------------------------------------------------------------
requestScope Java.util.Map 取得Request范围的属性名称所对应的值
---------------------------------------------------------------------
sessionScope Java.util.Map 取得Session范围的属性名称所对应的值
--------------------------------------------------------------------
applicationScope Java.util.Map 取得Application范围的属性名称所对应的值
--------------------------------------------------------------------------------
param Java.util.Map ServletRequest.getParameter(String name)。
回传String类型的值
-------------------------------------------------------------------------------
paramValues Java.util.Map ServletRequest.getParameterValues(String name)。回传String []类型的值
-------------------------------------------------------------------------
header Java.util.Map ServletRequest.getHeader(String name)。回传String类型的值
-------------------------------------------------------------------------
headerValues Java.util.Map ServletRequest.getHeaders(String name)。回传String []类型的值
----------------------------------------------------------------------
cookie Java.util.Map HttpServletRequest.getCookies( )
-----------------------------------------------------------------------
initParam Java.util.Map ServletContext.getInitParameter(String name)。回传String类型的值
pageContext javax.servlet.ServletContext 表示此JSP的PageContext
----------------------------------------------------------------------
pageScope Java.util.Map 取得Page范围的属性名称所对应的值
----------------------------------------------------------------------
requestScope Java.util.Map 取得Request范围的属性名称所对应的值
---------------------------------------------------------------------
sessionScope Java.util.Map 取得Session范围的属性名称所对应的值
--------------------------------------------------------------------
applicationScope Java.util.Map 取得Application范围的属性名称所对应的值
--------------------------------------------------------------------------------
param Java.util.Map ServletRequest.getParameter(String name)。
回传String类型的值
-------------------------------------------------------------------------------
paramValues Java.util.Map ServletRequest.getParameterValues(String name)。回传String []类型的值
-------------------------------------------------------------------------
header Java.util.Map ServletRequest.getHeader(String name)。回传String类型的值
-------------------------------------------------------------------------
headerValues Java.util.Map ServletRequest.getHeaders(String name)。回传String []类型的值
----------------------------------------------------------------------
cookie Java.util.Map HttpServletRequest.getCookies( )
-----------------------------------------------------------------------
initParam Java.util.Map ServletContext.getInitParameter(String name)。回传String类型的值