After converting jsp into servlet which methods are present i.e all 6 methods(jspinit(),_jspService(),jspDestroy(),init(),service(),destroy()) or only 3 methods i.e either jsp life cycle methods or servlet lifecycle methods

Showing Answers 1 - 6 of 6 Answers

veeru

  • Sep 8th, 2005
 

Servlets 3 methods we are getting . 
 
But we see only -jspService()

  Was this answer useful?  Yes

bharat kumar.k

  • Mar 9th, 2006
 

hai,

         jsp is nothing but a servlet .when  arequest is send to jsp jspcompiler craetes servlet object. so there is only three methods init(),service(),destroy().

  Was this answer useful?  Yes

Vandana

  • Aug 22nd, 2006
 

A jsp is basically a servlet so, there would be three methods not 6. jspInit() and jspDestroy() mehtods would be visible only if you override them in jsp page

<%!

public void jspInit() {

//initialization code

}

public void jspInit() {

//destroy code

}

%>

_jspService() mehtod is always visible.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions