Co-Authored By:

Asked by: Silviya Gamito
technology and computing web developmentWhen the destroy methods of JSP are called?
In this regard, which methods can be overridden in JSP?
You cannot override the_jspService()method within a JSP page. You canhowever,override the jspInit() and jspDestroy()methodswithin a JSP page. jspInit() can beuseful forallocating resources like database connections,networkconnections, and so forth for the JSPpage.
In this regard, what is the JSP service method?
_jspService() method is used to serve theraisedrequests by JSP.It takes request and response objectasparameters.This method cannot be overridden.JSPCleanup : In order to remove the JSP from use bythecontainer or to destroy method forservletsjspDestroy()method is used.
Explanation: Default value “true”depictsautomatic buffer flushing. 7. Which one is the correctorderof phases in JSP life cycle? Explanation: Thecorrectorder is Compilation, Initialization,Execution,Cleanup.