Master java skills

page Implicit Object

Page implicit object holds the currently executed servlet object for the corresponding jsp. Meaning it represents current jsp page’s translated servlet.

Page object acts as this object for current jsp page.

page Implicit Object Example

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Java Training School</title>
  </head>
  <body>
	<% String servletInfo = ((HttpServlet)page).getServletInfo();
    out.println("Current jsp's servlet information = " + servletInfo);%>
  </body>
</html>

Run and test