• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HFJS: page 447. last bullet >..i got confused.

 
srini E
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this is regarding <c:set> tag.
> 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 exists. So even though: ${fooBean.notAProperty} won't cause an exception by itself (it just returns null), if that same "notAProperty" is the value of a "target" attribute, the Container throws an exception.

I'm confused.I did understand the first part of it but not the last part.
Please help me understanding that.
Does the above can be represented as below?
<c:set target="${Person}" property="notAProperty" value="${fooBean.notAProperty}" />

Thanks in advance.
 
srini E
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I take back this question.

Sorry if any this question got someones attention.!!! I got it all wrong.
Reading that bullet upon mutliple times did make sense.
 
fred rosenberger
lowercase baba
Bartender
Posts: 12196
35
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
srinivas,

You must have missed our Naming Policy on the way in. We require a real first AND last name. Please go here and update your name.

Thanks!!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic