TestingDocs.com
Software Testing website
  • Automation
    • Selenium
    • JBehave Framework
  • Tutorials
    • MySQL Tutorials
    • Testlink
    • Maven
    • Git
  • IDEs
    • IntelliJ IDEA
    • Eclipse
  • Flowcharts
    • Flowgorithm
    • Raptor
  • About

Java Servlets

JSP Architecture

Overview

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.

JSP Interfaces

The main JSP interfaces are defined in the javax.servlet.jsp package. The interfaces are as follows::

  • JSPPage
  • HttpJspPage

These interfaces define the three methods for the compiled JSP page. The methods are as follows::

  • jspInit()
  • jspDestroy()
  • _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 Tutorials

Java Tutorial on this website:

https://www.testingdocs.com/java-tutorial/

For more information on Java, visit the official website :

https://www.oracle.com/java/

Related Posts

Java Servlets /

Java ServletRequest Interface

Model View Controller

Java Servlets /

Model View Controller( MVC )

Java Servlets /

Deployment Descriptor File (web.xml)

Java Servlets /

GenericServlet Class

Java Servlet Architecture

Java Servlets /

Java Servlet Architecture

‹ Java ServletRequest Interface

Recent Posts

  • Update draw.io on Windows
  • Install RAPTOR Avalonia on CentOS
  • Download RAPTOR Avalonia Edition on Windows
  • npm doctor command
  • Build & Run CLion Project
  • Create New CLion C Project on Windows
  • Configure CLion Toolchains on Windows
  • Launch CLion IDE on Windows
  • Activate CLion IDE
  • CLion IDE for C/C++ Development

Back to Top

Links

  • Contact
  • Privacy Policy
  • Cookie Policy

www.TestingDocs.com