Struts2使用标签库找不到URI:[struts-tags]的taglib[s]问题解决

Terwer...小于 1 分钟经验分享struts2tablib标签库not-founduristruts-tags

找到 struts2-core​ 的 jar​ 包,将其复制到无关文件夹中,当作压缩文件解压,在其中的 META-INF​​ 目录中找到 struts-tags.tld​​ 文件,将其复制到项目中 webapp/WEB-INF​​ 目录下,然后在 web.xml​​ 文件中 (之前) 添加以下内容:

<!--配置/struts-tag位置-->
<jsp-config>
    <taglib>
        <taglib-uri>s</taglib-uri>
        <taglib-location>/WEB-INF/struts-tags.tld</taglib-location>
    </taglib>
</jsp-config>
评论
  • 按正序
  • 按倒序
  • 按热度
Powered by Waline v2.14.9