86.0k views
5 votes
Which of the following is not a standard method called aspart of the JSP life cycle*

*jspInit()

*jspService()

*_jspService()

*jspDestroy()

1 Answer

5 votes

Answer:

*jspService()

Step-by-step explanation:

These are the steps in JSP life cycle.

1. Conversion JSP page to Servlet .

2.Compilation of JSP page(test.java)

3.Class is loaded (test.java to test.class)

4.Instantiation (Object is created)

5.Initialization (jspInit() method is only called once at the time of servlet generation )

6.Request processing(_jspService() method is used for serving requests by JSP)

7.JSP Cleanup (jspDestroy() method is used for removing JSP from use)

There is no *jspService() method in the JSP life cycle.

User AdarshaU
by
6.0k points