${foo.bar} - If foo Bean/Map exist but if bar does not exist as property than also print nothing
I can see few post that says that if bar property does not exist and EL will throw an exception.
The latter is correct. If 'foo' is null, the expression evaluates to null (and if a
String is required, nothing is printed). However, if 'foo' exists in a scope but has no 'bar' property, a runtime exception is thrown.
If this really bothers you,
you should read the coercion rules in the
JSP or EL specifications. Beware though, they are quite long and detailed!
Charles Lyons (SCJP 1.4, April 2003; SCJP 5, Dec 2006; SCWCD 1.4b, April 2004)
Author of OCEJWCD Study Companion for Oracle Exam 1Z0-899 (ISBN 0955160340 / Amazon Amazon UK )