Monday, June 6, 2022

What is JSP in web Technology

 JSP(Java Server Page)

JSP Java Server Page
 JSP(Java Server Page)


  1. JSP stands for Java Server Page.

  2.  It is a combination of java and Html code.

  3. JSP is known as High-Level Abstraction of Servlet i.e Translation or conversion of a JSP into a Servlet by the JEE Container for the first client request.

  4. Whenever a client makes a first request to a JSP, the JSP is translated or converted into a Servlet which is known as Translated Servlet of type " .java ".

  5. On successful compilation, a Translated Servlet of " .class " is generated and the response is rendered back to the Client.

  6. If the compilation fails, then the JEE Container throws an error with 500 code i.e Server Error.

  7. Hence, each and every JSP is internally a Servlet.


Specifications of JSP

There are 3 different specifications present for JSP namely

1. By default, JSP extends HTTP.

2. By default, all the TranslatedServlet extends a class called HttpJspBase class.

3. By default, all the TranslatedServlet are stored in the work folder of Apache Tomcat Server.


0 comments:

If you have any doubts,please let me know