JSP page implicit object

JSP page object is an instance of java.lang.Object. As we discussed earlier that JSP is translated into servlet by web container. JSP page object refers the instance of this servlet. It acts as a synonym for this object.

As it represents the servlet, it must be cast to HttpServlet.

this can also be used directly on JSP page instead of page object.



		<title>page implicit object example</title>
		  out.print("This is a page implicit object example.");
		  out.print("Name of the auto generated servlet: " 
                                              + this.getServletName()); 




jsp example 25
Download this example.
Next Topic: JSP exception implicit object with example.
Previous Topic: JSP pageContext implicit object with example.


Please Share