• Post Reply Bookmark Topic Watch Topic
  • New Topic

Bean Property-Dot Operator..

Sandya Bhaskara
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
mock exam-chapter 8 question 17-
it says-

"if the . dot operator is used to access a bean property but the property does not exist,then a runtime exception is thrown."

but in chapter 9,page 447 (key points and gotchas- last point) it says EL expression by itself will NOT cause an exception if the property does not exist.so even though $(fooBean.notAProperty) won't cause an exception by itself(it just returns null) etc etc....

aren't these two contradictory???
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!