报错:The absolute uri: http://java.sun.com/jsp/jstl/core cannot beresolved in either web.xml or the jar files deployed with this application
原因分析:缺jstl.jar和standard.jar两个包(注意:两个包的版本要一致)
这个是我自己实际遇到的问题及解决方案,不一定有普遍性,请有选择性的参考:
解决办法:
1. 在“环境变量”classPath里配置两个jar包的路径; 2. 在web.xml中配置上它们,在文件头添加上两句话就行了 xmlns:c=http://java.sun.com/jsp/jstl/core 3. 在JSP页面上进行引用声明:<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core " %> |