This absolute uri http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar
部署生產(chǎn)環(huán)境出現(xiàn)以上錯誤,原因是jsp頁面中使用了jstl的標簽,但沒有導(dǎo)入相應(yīng)的jar包。因為開發(fā)環(huán)境 myeclipse10 自帶類庫已經(jīng)集成
解決方法
①將jstl.jar和standard.jar放到WEB-INF/lib下重新打war包部署即可
②如果是maven管理,pom.xml文件中加上下面兩個依賴
<properties>
<jstl.version>1.1.2</jstl.version>
</properties>
...
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<version>${jstl.version}</version>
</dependency>
<dependency>
<groupId>taglibs</groupId>
<artifactId>standard</artifactId>
<version>${jstl.version}</version>
</dependency>
其中standard 的jar包中包含了對應(yīng)的tld文件。
jstl.jar和standard.jar下載地址 : jakarta-taglibs-standard-1.1.2.zip(上傳云盤)
本站僅提供存儲服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請
點擊舉報。