there is an example in Head First(1.4 ver book) which mentions pg 356 (chap 8-be a container)
in 3rd option that
request.setAttribute("person",p) will enable
<jsp:useBean id="person" type="foo.Employee"/>
<jsp:getProperty name="person" property="name"/>
this to give correctly the name set even though as we know that if
scope
is not mentioned it defaults to page. here it should default to page and since the attribute
person
is set in request scope it should not be able to find the bean.
please help me understand if there is flaw in my understanding!!??
in 3rd option that
request.setAttribute("person",p) will enable
<jsp:useBean id="person" type="foo.Employee"/>
<jsp:getProperty name="person" property="name"/>
this to give correctly the name set even though as we know that if
scope
is not mentioned it defaults to page. here it should default to page and since the attribute
person
is set in request scope it should not be able to find the bean.
please help me understand if there is flaw in my understanding!!??