Yes you can get to some of the properties of the pageContext implicit object in EL but not to the methods that accept parameters (so you can't get to the attributes).
Lets say you have a attribute set in your pageScope with the name "MyAttrib" that has a value of "MyAttribValue" you can't access it like this:
but with EL you can via the Map pageScope :
Bear Bibeault wrote:
Ummm, no, we can't.
Yea, Let's have an example!
There is an attribute with name "foo" with the value of "bar". And here are the cases,
will return "bar" with
And, will return "bar "with
And, will return "bar" with
But, with the pageContext bean, if we try as,
then it'll like,
. That means, it'll search for the property of the pageContext bean rather than attached object!
Bear Bibeault wrote:findAttribute() is a convenience method that searches all scopes for a particular scoped variable. It in no way means that pageScope is unnecessary -- pageScope is merely one of the scoped that findAttribute() searches.
I don't understand the purpose of this post! I'm searching for the answer, hoe the Container set the exception to the PageContect bean as the property without a setter?