I have a doubt in the following piece of code from HFSJ pg 356.
jsp code is.....
<jsp:useBean id="person" type="foo.Employee">
<jsp:setProperty name="person" property="name" value="Fred"/>
</jsp:useBean>
Name is:<jsp:getProperty name="person" property="name"/>
servlet code is........
foo.Person p=new foo.Employee();
p.setName("Evan");
request.setAttribute("person",p);
Person is an abstract bean class n Employee extends it.
Now this code wudnt work. I want to know why... as far as i cud understand is as we have not mentioned the scope in useBean tag, by default it wud be page. In the servlet we have set the person attribute at request scope, so useBean wont find any attribute named person in page scope n thus give error.Am i understanding it correctly...If anyone can help???
Thanx in advance.