pageContext
Introduction:
1. This is the only one EL implicit object which matches with Jsp implicit objects.
2. By using this implicit object we can bring all other implicit objects into EL and accessing servlet and JSP properties, such as a request's protocol or server port, or the major and minor versions of the servlet API your container supports.
3. You can find out that information and much more with the pageContext implicit object, which gives you access to the request, response, session, and application (also known as the servlet context).
4. Useful properties for the pageContext implicit object are listed in Table 2.6.
Property | Type | Description |
request | ServletRequest | The current request |
response | ServletResponse | The current response |
servletConfig | ServletConfig | The servlet configuration |
servletContext | ServletContext | The servlet context |
session | HttpSession | The current session |
Ex: 1.${pageContext.request.method}
2.${pageContext.session.id}