Google Advertisements

Prev Tutorial Next Tutorial


An API is a collection of packages, classes, interfaces and sub-packages. And sub-package is also a collection of classes interfaces and sub sub packages etc.

The JSP API consists of two packages;

  • javax.servlet.jsp
  • javax.servlet.jsp.tagext

javax.servlet.jsp package

The javax.servlet.jsp package has two interfaces and some classes.
Interfaces are;

  • JspPage
  • HttpJspPage

classes are;

  • JspWriter
  • JspError
  • PageContext
  • JspFactory
  • JspEngineInfo
  • JspException

JspPage Interface

JspPage interface has provided two lifecycle methods.

public void jspInit(): This method is invoked only once during the life cycle of the JSP when first request is come to JSP page is requested. It is used to perform initialization. This method is same as the init() method of Servlet

public void jspDestroy(): This method is invoked only once during the life cycle of the JSP before the JSP page is destroyed.

HttpJspPage interface

HttpJspPage interface provided a single life cycle method called _jspService().

public void _jspService(): This method is invoked each time when request for the JSP page comes to the container. It is used to process the request. The underscore _ signifies that you cannot override this method.

Prev Tutorial Next Tutorial

Google Advertisements

Buy This Ad Space @$50 per Month, Ad Size 600X200 Contact on: hitesh.xc@gmail.com or 8076671483

Pure VPN Privide Lowest Price VPN Just @ $1.65. Per Month with Non Detected IP Lowest Price Non Detected IP VPN

Magenet is best Adsense Alternative here we earn $2 for single link, Here we get links ads. Magenet

Cloud computing is the on demand availability of computer system resources, especially data storage and computing power, without direct active management by the user. Cloud Computing Tutorial

College Projects Related to Java, AWT, C Projects for College, C++ Projects for College, Android Projects. Download Java C C++ Projects

Download Projects

Adsense Advertisements

Buy This ads Space 8076671483

Buy This Ad Space @$120 per Month, Ad Size 300X600 Contact on: hitesh.xc@gmail.com or 8076671483 Try this Keyword C++ Programs