2016年7月16日 星期六

The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application

The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application

原本在NetBeans的 JSTL檔案執行沒有問題

轉入 Eclipse之後,用預設的Import方式也不行
Properties ==> Java Build Path ==> Libraries ==> Add External Jar


解決方案(Solution):


javax.servlet.jsp.jstl-1.2.1.jar
javax.servlet.jsp.jstl-api-1.2.1.jar

兩個檔案放到

WEB-INF/lib/  裡面

就解決了