配置web.xml时,提示taglib错误
<taglib>
<taglib-uri>struts2</taglib-uri>
<taglib-location>/WEB-INF/tld/struts-tags.tld</taglib-location>
</taglib>
</web-app>
<taglib-uri>struts2</taglib-uri>
<taglib-location>/WEB-INF/tld/struts-tags.tld</taglib-location>
</taglib>
</web-app>
方法:
把<taglib></taglib>用<jsp-config></jsp-config>包括起来,那就解决了!
本文介绍了解决在web.xml中配置Struts2 Taglib时出现的错误方法。通过将<taglib>标签包含在<jsp-config>标签内,可以有效解决该问题。
706

被折叠的 条评论
为什么被折叠?



