位於 struts2-core-xxx.jar/META-INF/struts-tags.tld,URI 為 /struts-tags。
<taglib>
<taglib-uri>/struts-tags</taglib-uri>
<taglib-location>/WEB-INF/lib/struts2-core-2.0.11.1.jar</taglib-location>
</taglib>
JSP 頁面引入:<%@ taglib prefix="s" uri="/struts-tags" %>
僅需 JSP 頁面引入指令,容器自動掃描 JAR 中的 TLD 文件。
struts-tags.tld 從 JAR 中提取到本地(如 E:/workspace/tld/struts-tags.tld)/struts-tags,Local Path: 本地 tld 文件路徑