Hello Ranchers,
HFS pg. 447, key point and gotchas for the <c:set>
Why NOT ? EL will not forgive u for this...
if i do something like this:
${fooBean.notAProperty}
it WILL cause me an exception. Tested this with Tomcat5.0.28 also. There was an exception.
am i missing something, or is it an error in the book here ?
Regards,
Gaurav.
HFS pg. 447, key point and gotchas for the <c:set>
If the "target" expression is a bean, but the bean does not have a property that matches "property", the Container throws an exception. But be careful, because the EL expression by itself will NOT cause an exception, if the property doesn't exist.
Why NOT ? EL will not forgive u for this...
if i do something like this:
${fooBean.notAProperty}
it WILL cause me an exception. Tested this with Tomcat5.0.28 also. There was an exception.
am i missing something, or is it an error in the book here ?
Regards,
Gaurav.