[My Blog]
All roads lead to JavaRanch
Originally posted by Parameswaran Thangavel:
The container will try to find the value for the attrbute
named "person" from one of the scope mentioned below in the same order given below
page
request
session
Applicaton
so the bean object which is placed in request scope is retrieved by the container.
Then why the <jsp:getProperty> action has scope attribute???
But while getting property, we are not specifying any scope, it means it is page scope (default one).
[My Blog]
All roads lead to JavaRanch
Originally posted by Satou kurinosuke:
???
Where did you see that getProperty had a scope attribute ?
There are only two attributes : name and property.
Why do you think that the default scope is set to page ? Did you read that in HFSJ ? Certainly not. getProperty has nothing to do with scope.
[ May 22, 2006: Message edited by: Satou kurinosuke ]
[My Blog]
All roads lead to JavaRanch
Originally posted by Satou kurinosuke:
Thanks rathi.
According to the jsp specification, there is no scope attribute for getProperty.
Syntax:
<jsp:getProperty name="name" property="propertyName"/>
There's been a thread about this before:
https://coderanch.com/t/168940/java-Web-Component-SCWCD/certification/scope-attribute-HFSJ
[ May 22, 2006: Message edited by: Satou kurinosuke ]
Originally posted by Bear Bibeault:
I'm not sure I agree that it's a "should", but the JSP 2.0 EL solves this "problem" by allowing you to specify the scope within which a reference to a scoped variable is made.
P.S. Please see my response in your other reply regarding your display name.
and scope in <jsp:getProperty> is not specified (so page)...
Don't get me started about those stupid light bulbs. |