I believe you are specifying a scope that does not contain the indicated (i.e. person) object, so a new demo.Person object is created. This object has no relation to the one in request scope, other than that they are of the same class.
Sai Narasimha Reddy
Joined: Dec 13, 2006
Then why a new object is not being created??........If it was created, it should print "Person name=litele" right??
i think the object "person" of type "demo.Person" in request scope is found when jsp:useBean action is trying to locate......that's why the object is not created i think......
if this is the case........then what does "scope" attribute really mean......does it mean the scope of already existing object or the scope of the newly created objects should be in