您的位置:首页 > 编程语言 > Java开发

/struts-tags not found ,/struts-dojo-tags not found 上线后异常解决方案

2013-08-22 10:16 429 查看
上线到2003上后发现2个问题:
1 缺少/struts-tags
2 缺少/struts-dojo-tags
在xp上不用直接指定这些文件的位置,但在其他的系统可能无法自动找到它的路径,一定要明确指定
在web.xml中配置:
<taglib>
<taglib-uri>/struts-tags</taglib-uri>
<taglib-location>/WEB-INF/struts-tags.tld</taglib-location>
</taglib>

<taglib>
<taglib-uri>/struts-dojo-tags</taglib-uri>
<taglib-location>/WEB-INF/struts-dojo-tags.tld</taglib-location>
</taglib>

在struts的包的META-INF中把文件copy出来到/WEB-INF/下

做以上修改后,系统可正常使用。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐