JSP page

In JSP, the purpose of page object is to create the servlet instance. The role of page object is similar to this keyword in Java.

The page object represents the entire JSP page. It is an instance of java.lang.Object class. In JSP, the utilization of page object is very rare.

Example of JSP Page

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Tutorial and Example</title>
</head>
<body>
<center>
JSP Class: <%=page.getClass()%>
<br>
Class Name: <%=page.getClass().getName() %>
</center>
</body>
</html>
Output: