[英]where to put struts-core2.x.x.jar? (in WEB-INF/lib or jboss shared lib)
where to put struts-core2.xxjar? 将struts-core2.xxjar放在哪里? (in WEB-INF/lib or jboss shared lib)
(在WEB-INF / lib或jboss共享库中)
When I'm trying to use struts tag in jsp, I'm getting an error as /struts-tag can not be located. 当我尝试在jsp中使用struts标记时,由于找不到/ struts-tag而出现错误。
I've kept all the jars in jboss shared lib folder. 我将所有jar都保存在jboss共享的lib文件夹中。 In my project configuration, I'm not allowed to put the jars in WEB-INF/lib location.
在我的项目配置中,不允许将罐子放在WEB-INF / lib位置。
What should I do? 我该怎么办?
This is the same problem you encounter creating skinny WARS (and then putting the libraries elsewhere, in my case in the EAR). 这与创建瘦的WARS (然后将库放到我的情况下,放在EAR中)时遇到的问题相同。
The solution I found was to: 我发现的解决方案是:
reference them in the page like this: 像这样在页面中引用它们:
<%@ taglib prefix="s" uri="/WEB-INF/struts-tags.tld" %>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.