108k views
3 votes
When a JSP page is compiled, what is it turned into*

*Applet

*Servlet

*Application

*Midlet

1 Answer

4 votes

Answer:

When a JSP page is compiled it turns into Servlet.

Step-by-step explanation:

For this question you have to know the life cycle of a JSP page.

Following are the steps involved in the life cycle of a JSP page:-

1.Translation of JSP page (a java servlet file is generated form JSP source).

2.Compilation ( JSP page compilation into _jsp.java) .

3.Class loading(_jsp.class class file is created from _jsp.lava) .

4.Instantiation (Object of the servlet is created) .

5.Initialization(container invokes _jspinit() method).

6.Request Processing (container invokes _jspservice() method ).

7.Destroy (container invokes _jspDestroy() method).

User Dave Ford
by
7.4k points