简体   繁体   English

jsp生成的servlet扩展哪个类

[英]which class does jsp generated servlet extends

我们都知道JSP被转换为servlet,但是当jsp被转换为servlet时,它会像普通servlet一样扩展HTTPServlet还是扩展其他类?

<%=this.getClass().getSuperclass()%><br />
<%=this.getClass().getSuperclass().getSuperclass()%>

prints 版画

class org.apache.jasper.runtime.HttpJspBase
class javax.servlet.http.HttpServlet

to me on Tomcat7 在Tomcat7上给我

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 LongAdder扩展了哪个类? - Which class does LongAdder extends? JSP不在Linux上创建Servlet类 - JSP does not create class of servlet on linux 如何在运行时获取JSP生成的servlet类的文件路径? - How to get at runtime the filepath of the servlet class generated fom a JSP? 如果jsp生成的类扩展了HttpServlet,那么为什么我们可以使用extend标记再扩展一个类呢? - If jsp generated class extends HttpServlet, how come we can extend it with one more class using extend tag? 调用一个在加载时不从jsp返回任何信息的servlet - calling a servlet which does not return anything…from a jsp while loading JavaFX - 如何在Controller类中添加不扩展Application的样式表? - JavaFX - How to add stylesheet in Controller Class which does not extends Application? 有什么方法可以与生成意图并从扩展IntentService类的类发送该意图的类进行通信? - Is there any way by which we can communicate back to the class which generated an intent and sent it from a class which extends IntentService class? 扩展抽象类的类 - Class which extends abstract class JSP和Servlet不响应转发 - JSP and servlet does not respond to forwarding 扩展JLabel的Draw类 - Draw Class which extends JLabel
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM