views:

126

answers:

1

Why the jspService() method cannot be overridden, where as jspInit() and jspDestroy() can be overridden?

+3  A: 

This forum post explains why you cannot override jspService().

Basically, if you tried to override the jspService method, the code generated by the JSP compiler would end up with two copies of the method: the one you wrote and the one created by the compiler. This would result in a Java compilation error.

Stephen C