1 / 5

JSP Object Scope

JSP

gent
Download Presentation

JSP Object Scope

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


    1. JSP – Object Scope Various objects have various scope (visibility) within JSP pages The objects are associated with a scope attribute that defines where there is a reference to the object and when that reference is removed

    2. JSP – Object Scope The various scopes are (from the most visible to the less visible) Application Session Request Page

    3. JSP – Page Scope Objects are accessible only within the pages where they were created Implicit objects out, exception, response have page scope

    4. JSP – Request Scope Objects are accessible from pages processing the request where they were created (there could be several pages handling a request) Implicit object request has request scope

    5. JSP – Session Scope Objects are accessible from pages belonging to the same session as the one in which they were created Implicit object session has session scope

    6. JSP – Application Scope Objects are accessible from pages that belong to the same application Implicit object application has application scope

More Related