!--a11y-->
Objects of Scope 
When serving client requests, various Web components that build a Web application share objects that they have instantiated. To do so, they make them available in certain scopes. At runtime, these scopes are represented by Java objects. The following scopes are available to J2EE Web application developers:
|
Scope |
Object Type |
Description |
|
Servlet context
For JSP pages this scope is also called “application” scope. |
javax.servlet.ServletContext |
This object represents the whole Web application at runtime. It is available to all servlets and JSP pages that build the application. |
|
Request |
javax.servlet.ServletRequest |
This object represents the current HTTP request. It is available to all components that process the current request. |
|
Session |
javax.servlet.http.HttpSession |
This object represents the current session of a user. It is available to all components that process requests that are associated with this HTTP session. |
|
Page |
javax.servlet.jsp.PageContext |
This object represents a single JSP page. It is available only to Java code elements within this JSP page or code elements of JSP pages included with the include directive. |
