• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EL doubt

 
Saravanan Viswanathan
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

If i have an EL expression ${person.name} and if the "name" property doesn't exist for the bean "person", then should I get an error or not ?
I tried this in Tomcat and it throws an error saying the property doesn't exist. But as per HFSJ it should not throw error. Its mentioned in Errata as well -> [432] Question 17, Option C

Which one is correct now ?
 
Charles Lyons
Author
Ranch Hand
Posts: 836
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This has actually been addressed before, with respect to the Head First book particularly:

http://www.coderanch.com/t/168199/java-Web-Component-SCWCD/certification/Bean-Property-Dot-Operator
 
Saravanan Viswanathan
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Charles.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic