报错: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
            xmlns:fmt=http://java.sun.com/jsp/jstl/fmt

3.         在JSP页面上进行引用声明:<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core " %>

Logo

北京人形旗下天工造物具身智能开源社区,聚焦具身天工与慧思开物两大平台

更多推荐