Q. Which about EL access operators are true? C. If the .(dot) operator is used to access a bean property but the property doesn't exist, then a runtime exception is thrown.
if the bean exist and property does not exist -- throws run time exception (at least in tomcat). I have seen several posts in this forum that says the above statement is correct and errata is wrong. I am confused now !! which is one is right?I greatly appreciate HFS authors if they could clarify this doubt
Try creating a Person class with just firstName property, but in the EL access lastName, which does not exist in your class definition. What do you see?
Additionally, please refer to JSP 2.3.4 last paragraph of JSP 2.0 Specification.
Try creating a Person class with just firstName property, but in the EL access lastName, which does not exist in your class definition. What do you see?
Additionally, please refer to JSP 2.3.4 last paragraph of JSP 2.0 Specification.
Can I assume the errata is wrong?
~Cheers
Oh boy, it threw an exception. Errata IS wrong!! I am concuding that if the left side of dot in an EL is Map then it will not throw an exception but if its bean it will.
Guess book needs errata's errata
We begin by testing your absorbancy by exposing you to this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss