Tomcat Maven:找不到标记库描述符
我正在使用maven3和tomcat7,我想在我的jsp页面中使用JSTL,所以我添加了以下标记库:Tomcat Maven:找不到标记库描述符,tomcat,maven,jstl,jsp-tags,Tomcat,Maven,Jstl,Jsp Tags,我正在使用maven3和tomcat7,我想在我的jsp页面中使用JSTL,所以我添加了以下标记库: <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %> <dependency> <groupId>taglibs</groupId> <artifactId>standard</artifactId>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<dependency>
<groupId>taglibs</groupId>
<artifactId>standard</artifactId>
<version>1.1.2</version>
</dependency>
我收到此错误消息的问题是:找不到标记库描述符
这是添加的依赖项:
javax.servlet
jstl
1.1.1
<dependency>
<groupId>taglibs</groupId>
<artifactId>standard</artifactId>
<version>1.1.2</version>
</dependency>
塔格利布
标准
1.1.2
我尝试了这个标记库,但同样的问题仍然存在:
<dependency>
<groupId>taglibs</groupId>
<artifactId>standard</artifactId>
<version>1.1.2</version>
</dependency>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
您有什么想法吗?请您需要两个不同的jar文件才能使标记正常工作。您已经将标准列为一个依赖项,但还需要为JSTL添加一个依赖项。希望这个答案能帮助新用户搜索同一主题。。正如我所做的那样,我没有找到任何答案。。最后我把它修好了
<dependency>
<groupId>taglibs</groupId>
<artifactId>standard</artifactId>
<version>1.1.2</version>
</dependency>
要遵循的步骤很少。。对于Tomcat7和maven,JSTL1.2和标准1.1.0是兼容的
<dependency>
<groupId>taglibs</groupId>
<artifactId>standard</artifactId>
<version>1.1.2</version>
</dependency>
将pom.xml文件更新为
<dependency>
<groupId>taglibs</groupId>
<artifactId>standard</artifactId>
<version>1.1.2</version>
</dependency>
<dependency>
<groupId>jstl</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
</dependency>
<dependency>
<groupId>taglibs</groupId>
<artifactId>standard</artifactId>
<version>1.1.0</version>
</dependency>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns /j2ee/web-app_2_4.xsd">
jstl
jstl
1.2
塔格利布
标准
1.1.0
将web.xml文件更新为
<dependency>
<groupId>taglibs</groupId>
<artifactId>standard</artifactId>
<version>1.1.2</version>
</dependency>
<dependency>
<groupId>jstl</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
</dependency>
<dependency>
<groupId>taglibs</groupId>
<artifactId>standard</artifactId>
<version>1.1.0</version>
</dependency>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns /j2ee/web-app_2_4.xsd">
这管用 我添加了它,但问题仍然存在
<dependency>
<groupId>taglibs</groupId>
<artifactId>standard</artifactId>
<version>1.1.2</version>
</dependency>