<%@ taglib prefix="my" uri="http://jakarta.apache.org/tomcat/jsp2-example-taglib"%> JSP 2.0 Expression Language - Implicit Objects

JSP 2.0 Expression Language - Implicit Objects


This example illustrates some of the implicit objects available in the Expression Lanaguage. The following implicit objects are available (not all illustrated here):
Change Parameter
foo =

EL Expression Result
\${param.foo} ${my:htmlReplace(param.foo)}
\${param["foo"]} ${my:htmlReplace(param["foo"])}
\${header["host"]} ${my:htmlReplace(header["host"])}
\${header["accept"]} ${my:htmlReplace(header["accept"])}
\${header["user-agent"]} ${my:htmlReplace(header["user-agent"])}