at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:53) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:147) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:88) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
at org.apac
今天碰到了struts标签的tld无法获取到的问题,
jsp页面:
<%--@ taglib uri="/tags/struts-logic" prefix="logic"--%>
<%--@ taglib uri="/tags/struts-bean" prefix="bean"--%>
<%--@ taglib uri="/tags/struts-html" prefix="html"--%>
<%--@ taglib uri="/tags/struts-nested" prefix="nested"--%>
web.xml:
<taglib>
<taglib-uri>/tags/struts-nested</taglib-uri>
<taglib-location>
/WEB-INF/classes/struts/tag/struts-nested.tld
</taglib-location>
</taglib>
启动服务器,打开页面一直报这个错,后来发现了解决办法:
创建一个文件夹:META-INF,把所有的.tld文件放入文件夹中,打包成xx.jar,放到WEB-INF\lib下,页面引用时
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-nested" prefix="nested"%>
OK,问题解决。