the book says that this will fail at request time.But if we change the servlet code to Employee p = new Employee();
it will run properly.
looks for object in the page scope and it could not find..
<jsp:useBean id="person" type="Employee">
@sudhakar I think the default scope is page so there is no need to add that right? but here the person attribute is stored in request scope right?
I'm curious if it will work if you add scope='page' to <jsp:usebean ..> !
Note that the HFSJ example has a Person as type, not an Employee.