So we all know that #{someBean.value}
will try and get the content of some property on someBean
called value
. It will look for getValue()
. However, what if this property is boolean
? It will look for isValue()
. What it won't look for is hasValue()
.
This got me thinking, what exactly does it do?
Java EE 5 tutorial chapter - Unified Expression Language refers to PageContext.FindAttribute()
. PageContext
sends you to JSPContext
. None of them actually explain the rules they are following to determine the name of the method they are looking for.
It is also fairly easy to find documentation that says the method names must begin with get. However, I know that isValue()
works.
Can anyone point me to documentation where this is written down. I'm not looking for tutorials or examples I'm looking for reference.