Which of the following statements are true? Choose at least one answer. a. The jspInit() method may be overriden within a JSP page- Correct b. The _jspService may be overriden within a JSP page c. When a JSP starts the startup() method is called d. The jspDestroy method will be called by the container before a JSP page goes out of service- Correct.
-This example is from Marcus Green mock exam. I answered only "a" but they have given "a" & "d" are correct answer. How "d" is the correct answer? Please anyone can explain?
Originally posted by dolly shah: How "d" is the correct answer? Please anyone can explain?
Whenever a servlet goes out of service, either by the container being shut down or the application being redeployed, the container calls the servlet's jspDestroy method to allow the servlet to "clean up" before being taken out of service. [ January 07, 2008: Message edited by: Mark A Brown ]