Page Implicit Object
Advertisements
Page Implicit Object
In JSP, page is an implicit object of type Object class. When a jsp is translated to an internal Servlet, we can find the following statement in the service() method of servlet.
Object page=this;
For using this object it must be cast to Servlet type.For example:
Example
<% (HttpServlet)page.log("message"); %>
Since, it is of type Object it is less used because you can use this object directly in jsp.For example:
Example
<% this.log("message"); %>
Google Advertisment