Why can't jspService() be overridden?

让人想犯罪 __ 提交于 2019-12-04 22:29:42

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/2288514/why-cant-jspservice-be-overridden

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!