If it’s NOT a String literal, it’s evaluated
If there are no quotes inside the brackets, the Container evaluates what’s inside the brackets by searching for an attribute bound under that name, and substitutes the value of the attribute. (If there is an implicit object with the same name, the implicit object will always be used.)
Find an attribute named “Ambient”. Use the VALUE of that attribute as the key into the Map, or return null.
In a servlet
This does NOT work in a JSP (given the servlet code)
Get Head First Servlets and JSP, 2nd 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.