java开发踩坑(1)-tomcat、servlet、JSTL的匹配问题

tomcat、servlet、JSTL的匹配问题

这里写图片描述

如果用的版本不匹配就会报错

org.apache.jasper.JasperException: This absolute uri (http://java.sun.com/jsp/jstl/core ) cannot be resolved in either web.xml or the jar files deployed with this application

另外,JSTL1.0和JSTL1.1的声明语句不一样。
JSTL 1.0 的声明是:
<%@ taglib prefix=”c” uri=”http://java.sun.com/jstl/core ” %>
JSTL1.1 的声明是:
<%@ taglib prefix=”c” uri=http://java.sun.com/jsp/jstl/core %>

多了一个jsp

猜你喜欢

转载自blog.csdn.net/Chirskuro/article/details/79033573