versions: Tomcat 5.5.28, Java 1.6.0_15 and Windows XP Pro SP3
Hi!
Can someone explain why does an EL like ${someListobject.a} NOT give
an error ?
someListobject is an attribute of type java.util.List
a is not a property of java.util.List, so according to Servlet 2.4
specs (page I-68),
it should
fourni.
Date: Wed, 26 Aug 2009 13:32:55 +0200
Subject: EL - access to nonexisting property, but no error ?
From: xerc...@gmail.com
To: users@tomcat.apache.org
versions: Tomcat 5.5.28, Java 1.6.0_15 and Windows XP Pro SP3
Hi!
Can someone explain why does an EL like ${someListobject.a
Put this in a JSP all by itself - you should get an error (or at least -
I did):
%request.setAttribute(aList, new java.util.ArrayList());%
${aList.a}
Not sure why yours did not produce an erro - a more complete snippet
would be needed.
-Tim
David Balažic wrote:
versions: Tomcat 5.5.28,
Martin, I have no isELIgnored=true
But I figured it out.
I had an object (bean), that had a property/method :
List getMyList()
Then I used an EL:
${theBean.myList.a}
This would cause an error , except if getMyList() returns null!
Then it is a null.something EL, which gives no error.
Thanks for