程序员一代码搬运工
【Java学习心得和Java学习技术个人总结】

Can not find the tag library descriptor for “http://java.sun.com/jsp/jstl/core”

Use taglib definition in your JSP or better include it in every page by the first line.

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

需要加

<dependency>
  <groupId>jstl</groupId>
  <artifactId>jstl</artifactId>
  <version>1.2</version>
  <scope>compile</scope>
</dependency>
<dependency>
  <groupId>taglibs</groupId>
  <artifactId>standard</artifactId>
  <version>1.1.2</version>
  <scope>compile</scope>
</dependency>

web.xml

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" 
    xmlns="http://java.sun.com/xml/ns/javaee" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
    http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">

 

赞(0)
未经允许不得转载:程序员一代码搬运工 » Can not find the tag library descriptor for “http://java.sun.com/jsp/jstl/core”
分享到: 更多 (0)