我正在使用Struts-1
. 我开发了一个基于 struts 的 Web 应用程序。我struts-taglib.jar
通过在 JSP 文件中插入以下行来在提供的 JSP 页面中使用 struts 标记:
<%@ taglib prefix="html" uri="http://struts.apache.org/tags-html" %>
<%@ taglib prefix="logic" uri="http://struts.apache.org/tags-logic" %>
<%@ taglib prefix="bean" uri="http://struts.apache.org/tags-bean" %>
现在,当我在本地系统上运行该应用程序时,它运行良好,但是当我将它部署到服务器上时,它显示以下异常:
org.apache.jasper.JasperException: The absolute uri: http://struts.apache.org/tags-html cannot be resolved in either web.xml or the jar files deployed with this application
从上面的异常看来,应用程序似乎没有找到该struts-taglib.jar
文件。
但我已经把struts-taglib.jar
in/WEB-INF/lib
目录。那么问题出在哪里?
注意:您还可以查看Java - Problem in deploying Web Application了解更多信息