Hi Luis,
The second option doesn't throw error. It will display blank. Below are notes from JSP spec.
To evaluate expr-a[expr-b]
Evaluate expr-a into value-a
If value-a is null then return null.
Evaluate expr-b into value-b
if �value-b� is null then return null.
Below answer's your second query.
Points from JSP 2.3.3
JSP pages are mostly used in presentation, and in that usage, experience suggests that it is most important to be able to provide as good a presentation as possible,even when there are simple errors in the page. To meet this requirement, the EL does not provide warnings, just default values and errors.
Thanks.
Vijay Bheemineni.