`

JspSourceDependent.getDependants()

阅读更多

1. JSP编译成的servlet

继承 org.apache.jasper.runtime.HttpJspBase

实现 org.apache.jasper.runtime.JspSourceDependent

 

2. 继承 org.apache.jasper.runtime.HttpJspBase 实现方法 public void _jspService(HttpServletRequest request, HttpServletResponse response)

 

3. 实现 org.apache.jasper.runtime.JspSourceDependent 实现方法  public java.util.List getDependants()

 

该方法 英文描述如下

public interface JspSourceDependent

Interface for tracking the source files dependencies, for the purpose of compiling out of date pages. This is used for

1) files that are included by page directives

2) files that are included by include-prelude and include-coda in jsp:config

3) files that are tag files and referenced

4) TLDs referenced

 

跟踪原始文件的依赖,为以下4个目的使用

 

1)使用page指令包含的页面文件 例如<%@include file="xxx.html"%>

2) files that are included by include-prelude and include-coda in jsp:config

3) 文件是标签或者引用

4) TLDs 引用

 

分享到:
评论

相关推荐

    servlet的原理

    这个类继承自`HttpJspBase`,实现了`JspSourceDependent`接口,这是JSP编译为Servlet时的标准结构。 1. **初始化**:`_jspInit()`方法负责初始化表达式工厂和实例管理器。 2. **依赖管理**:`getDependants()`方法...

    JSP动态网页设计:第7章 JSP开发基础.ppt

    implements org.apache.jasper.runtime.JspSourceDependent { …… public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException { …… ...

    JSP重要基础知识学习资料

    public class MyJSP extends javax.servlet.http.HttpServlet implements javax.servlet.jsp.JspSourceDependent { protected void _jspService(HttpServletRequest request, HttpServletResponse response) ...

    JSP脚本元素和注释复习总结示例

    implements org.apache.jasper.runtime.JspSourceDependent { // ... public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException { /...

    JSP动态网页开发原理详解

    这个Servlet类继承自特定的JSP运行时类,例如org.apache.jasper.runtime.HttpJspBase,并实现了JspSourceDependent接口,这表明了该Servlet类是由JSP文件生成的。当JSP页面被请求时,Servlet容器加载这个Servlet类,...

Global site tag (gtag.js) - Google Analytics