JSP 2.0 Expression Language - Implicit Objects


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

EL Expression Result
${param.foo} bar 
${param["foo"]} bar 
${header["host"]} 127.0.0.1:8080 
${header["accept"]} text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7 
${header["user-agent"]} Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)