<%@ taglib prefix="c" uri="http://java.sun.com/jst
2016-03-19 17:43
441 查看
有些时候,<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>会报错,错误提示为:
Can not find the tag library descriptor for "http://java.sun.com/jsp/jstl/core"
主要原因是缺少
jstl.jar
standard.jar
两个Jar包
在pom.xml增加:
<dependency>
<groupId>jstl</groupId>
<artifactId>jstl</artifactId>
<version>1.1.2</version>
</dependency>
<dependency>
<groupId>taglibs</groupId>
<artifactId>standard</artifactId>
<version>1.1.2</version>
</dependency>
如果还不行,请调整jstl.jar 版本,这个主要根据web的version的版本有关。增加如下
<jsp-config>
<taglib>
<taglib-uri>http://java.sun.com/jstl/fmt</taglib-uri>
<taglib-location>/WEB-INF/tlds/fmt.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/fmt-rt</taglib-uri>
<taglib-location>/WEB-INF/tlds/fmt-rt.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
<taglib-location>/WEB-INF/tlds/c.tld</taglib-location>
</taglib>
</jsp-config>
Can not find the tag library descriptor for "http://java.sun.com/jsp/jstl/core"
主要原因是缺少
jstl.jar
standard.jar
两个Jar包
在pom.xml增加:
<dependency>
<groupId>jstl</groupId>
<artifactId>jstl</artifactId>
<version>1.1.2</version>
</dependency>
<dependency>
<groupId>taglibs</groupId>
<artifactId>standard</artifactId>
<version>1.1.2</version>
</dependency>
如果还不行,请调整jstl.jar 版本,这个主要根据web的version的版本有关。增加如下
<jsp-config>
<taglib>
<taglib-uri>http://java.sun.com/jstl/fmt</taglib-uri>
<taglib-location>/WEB-INF/tlds/fmt.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/fmt-rt</taglib-uri>
<taglib-location>/WEB-INF/tlds/fmt-rt.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
<taglib-location>/WEB-INF/tlds/c.tld</taglib-location>
</taglib>
</jsp-config>
相关文章推荐
- https://github.com/MediaTek-Labs/linkit-smart-7688-webUI
- HttpURLConnection使用
- Connection to https://dl-ssl.google.com refused
- UNIX网络编程之旅-配置unp.h头文件环境
- 一点关于卷积神经网络(CNN)的想法
- 如何简单形象又有趣地讲解神经网络是什么?知乎
- HTTP Header 详解
- Android网络编程使用HttpClient访问web站点
- Netty精粹之TCP粘包拆包问题
- 问题:XMLHttpRequest cannot load file~~Origin 'null' is therefore not allowed access
- TCP TIME_WAIT分析
- tcp拥塞控制
- Http原理实践 Go实现
- 计算机网络-TCP/IP协议相关知识点
- 教你如何读懂卷积神经网络(CNN)
- 什么是MAC寻址与IP寻址;路由器与交换机;集线器Hub;不同网络间的数据传输
- http://www.cnblogs.com/leiOOlei/p/5075402.html
- 大小端及网络字节序
- 关于网络
- 【转】使用Fiddler进行HTTP断点调试。