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

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

1
2
3
4
5
6
7
<!--配置/struts-tag位置-->
<jsp-config>
<taglib>
<taglib-uri>s</taglib-uri>
<taglib-location>/WEB-INF/struts-tags.tld</taglib-location>
</taglib>
</jsp-config>

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

https://hexo.terwer.space/post/struts2-can-not-find-uri-strutstags-taglib-s-problem-solving-z1gd2lw.html

作者

Terwer

发布于

2022-10-30

更新于

2022-10-30

许可协议

评论