2008.04.09 摘自 JSF in action 2.4.2 Using implicit variables Page/115
Table 2.6 The JSF EL supports implicit variables for accessing commonly used objects. Most of the
same variables are supported by the JSP 2.0 EL.
Implicit variable | Description | Example | Supported in JSP 2.0 EL? |
---|---|---|---|
applicationScope | A Map of application-scoped variables, | #{application- | Yes |
cookie | A Map of cookie values for the | #{cookie.myCookie} | Yes |
facesContext | The FacesContext instance for | #{facesContext} | No |
header | A Map of the HTTP header values | #{header['User-Agent']} | Yes |
headerValues | A Map of the HTTP header values | #{headerValues['Accept- | Yes |
initParam | A Map of the application initialization | #{initParam.adminEmail} | Yes |
param | A Map of the request parameters, | #{param.address} | Yes |
paramValues | A Map of the request parameters, | #{param.address[2]} | Yes |
requestScope | A Map of request scoped variables, | #{requestScope.user- | Yes |
sessionScope | A Map of session scoped variables, | #{sessionScope['user']} | Yes |
view | The current view. | #{view.locale} | No |