There are four scopes:
Page – accessible only in the page in which the object is created. Released when the response is returned or the request forwarded.
Request – accessible from pages processing the request in which the object is created. Released when the request has been processed.
Session – accessible from pages processing requests in the same session in which the object is created. Released when the session ends.
Application – accessible from pages processing requests in the same application in which the object is created. Released when the runtime environment reclaims the ServletContext.
References to the object are stored in the PageContext, Request, Session, or Application object, according to the object’s scope.
Copyright © 2005. Sybase Inc. All rights reserved. |