JspSourceDependent.getDependants()

本文探讨了JSP编译成Servlet的过程,包括继承HttpJspBase类及实现JspSourceDependent接口的方法。详细介绍了_jspService方法用于处理HTTP请求及getDependants方法跟踪依赖源文件的功能。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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 引用

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值