Implicit Variables

All information about a request and other data can be accessed through the EL implicit variables:

Variable name

Description

pageScope

A collection (a java.util.Map) of all page scope variables.

requestScope

A collection (a java.util.Map) of all request scope variables.

sessionScope

A collection (a java.util.Map) of all session scope variables.

applicationScope

A collection (a java.util.Map) of all application scope variables.

param

A collection (a java.util.Map) of all request parameter values as a single String value per parameter.

paramValues

A collection (a java.util.Map) of all request parameter values as a String array per parameter.

header

A collection (a java.util.Map) of all request header values as a single String value per header.

headerValues

A collection (a java.util.Map) of all request header values as a String array per header.

cookie

A collection (a java.util.Map) of all request cookie values as a single javax.servlet.http.Cookie value per cookie. See Appendix D for a list of properties for the Cookie class.

initParam

A collection (a java.util.Map) of all application initialization parameter values as a single String value per parameter.

pageContext

An instance of the javax.servlet.jsp.PageContext class, providing access to various request data. See Appendix D for a list of its properties.

Get JavaServer Pages, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.