Implicit Objects
The Servlet also creates several objects to be used by the JSP
engine. These objects are available for the JSP developer and they can use the objects in the JSP files without declaring the objects in the JSP. The following table will explain all the implicit objects available in the JSP pages.
| Object | Description |
|---|---|
| out | The out object is an instantiation of a javax.servlet.jsp.JspWriter object. This object may represent a direct reference to the output stream, a filtered stream, or a nested JspWriter from another JSP. |
| request | Each time a client requests a page the JSP engine creates a new object to represent that request. This new object is an instance of javax.servlet.http.HttpServletRequest and is given parameters describing the request. |
| response | The response object is an instance of javax.servlet.http.HttpServletResponse and is used to send the response to the browser. |
| application | The application is same as the ServletContext object in Servlet. It has the same methods and interfaces that the ServletContext object have in Servlets. |
| session | The session object is an instance of HttpSession and used to track information about a particular client. Each client has one global session object. |
| pageContext | The pageContext object is used to represent the entire JSP page and contains information about the directives issued to the JSP page. |
| config | The config object is an instantiation of javax.servlet.ServletConfig. It has the same methods and interfaces that the ServletConfig object have in Servlet. |
| exception | The error handling methods described in . It is available only when the previous JSP page throws an uncaught exception and the <%@ page errorPage="..." %> tag was used. The exception object is a wrapper containing the exception thrown from the previous page. |
| page | This object is an actual reference to the instance of the page. In other words we can say , page object equal to this object. |
The coming section will explain the examples of individual object.
Jsp Discussion
- - Two forms in one JSP
- - PASS VARIABLES BETWEEN 2
- - Table data
- - Unable to laod the image
- - The Ultimate Web UI Frame





