Variables
Variables are
named
references to data (objects), created by the application or made
available implicitly by the EL. Application-specific variables can be
created in many ways, for instance using the
<jsp:useBean>
action. They can also be
created by custom actions or be passed to the JSP page by a servlet.
Every object that is available in one of the JSP scopes can be used
as an EL variable:
<c:out value="${aScopedVariable}" />
Implicit Variables
All information about a request and other data can be accessed through the EL implicit variables:
Variable name |
Description |
---|---|
pageScope |
A collection of all page scope variables (a
|
requestScope |
A collection of all request scope variables (a
|
sessionScope |
A collection of all session scope variables (a
|
applicationScope |
A collection of all application scope variables (a
|
param |
A collection of all request parameter values, as a single
|
paramValues |
A collection of all request parameter values, as a
|
header |
A collection of all request header values, as a single
|
headerValues |
A collection of all request header values, as a
|
cookie |
A collection of all request cookie values, as a single
|
Get JavaServer Pages, Second 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.