Name | Interface |
---|---|
page | javax.servlet.jsp.HttpJspPage |
What is JSP implicit object page?
The page variable is an alias for ‘this’, that refers to the servlet instance.
JSP implicit object page example program (github)
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>ourownjava.com</title> </head> <body> <!-- jsp implicit object page example use --> JSP Engine : <%=((Servlet)page).getServletInfo() %> <p/> Servlet Config : <%=((Servlet)page).getServletConfig() %> <p/> </body> </html>