1,org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this applicationjava
也就是 web
在jsp页面引入 spring
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>apache
识别不了报错spring-mvc
首先导入包 jstl-1.2.jarmvc
从新启动以后,发现仍是报错了,那么就 将 jstl-1.2.jar 里面的 c.tld 复杂一份放在 WEB-INF 下面。app
从新编译启动以后,若是仍是不行能够尝试 jsp
在web.xml 加上maven
<jsp-config>
<taglib>
<taglib-uri>http://java.sun.com/jsp/jstl/core</taglib-uri>
<taglib-location>/WEB-INF/c.tld</taglib-location>
</taglib>
</jsp-config> this
2,
uri: [http://www.springframework.org/tags/form] cannot be resolved in
也就是在JSP页面里面 使用了 spring 的 tag
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
而后就会报错识别不了,
不少网友都说须要引入 spring-mvc 或者 spring-webmvc 的相关的包,
但是我已经 加进去 了, 可是仍是会报错
参考
https://stackoverflow.com/questions/4219166/can-not-find-the-tag-library-descriptor-of-springframework
解决办法
将 spring-webmvc.jar 包里面的
spring.tld 和 spring-form.tld 这些文件 拷贝一份在在 WEB-INF里面 ,从新编译启动便可