In this tutorial, we will learn about JSP Architecture. JSP stands for Java Server Pages. JSP technology enables Java programmers to embed Java code into HTML pages. JSP files will be compiled into a servlet by the JSP engine. The compiled servlet is used by the JSP engine to serve the client’s requests.
The main JSP interfaces are defined in the javax.servlet.jsp package. The interfaces are as follows::
These interfaces define the three methods for the compiled JSP page. The methods are as follows::
- _jspService(HttpServletRequest request, HttpServletResponse response)
The compiled JSP file contains the above methods. The JSP engine generates the _jspService() method. Developers can define the jspInit() and jspDestroy() methods.
Java Tutorial on this website:
For more information on Java, visit the official website :