I have one doubt in JAVAbeans from HFSJ book in scriptfree pages chapter.
This question occcurs inbetween the chapter.
Question:<jsp:useBean id="person" type="Foo.Employee">
<jsp:setProperty name="person" property="name" value="fred"/>
Name is :<jsp:getproperty name= "person" property="name"/>
Now what will happen if this jsp page comes after following servlet
ii) foo.Employee p= new Foo.Employee();
Employee is the concrete class and it inherits Person class.Person is an abstract class.
Now the answer given in the book is
i)will not evaluate because the attribute is in request scope but the useBean tag searches in the page scope.
ii)This works fine.
I can understand the first answer but i expect the same answer for the ii) one also but why does it evaluates fine.Can anyone explain me this.....