简体   繁体   English

我的jsp中的错误taglib

[英]Error taglib in my jsp

I have a project where i use Maven and Struts 1.3.10. 我有一个使用Maven和Struts 1.3.10的项目。

My dependencies in my Pom.xml: 我在Pom.xml中的依赖项:

<dependencies>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>3.8.1</version>
        </dependency>
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>servlet-api</artifactId>
            <version>2.5</version>
        </dependency>
        <dependency>
            <groupId>org.apache.struts</groupId>
            <artifactId>struts-core</artifactId>
            <version>1.3.10</version>
        </dependency>
        <dependency>
            <groupId>org.apache.struts</groupId>
            <artifactId>struts-taglib</artifactId>
            <version>1.3.10</version>
        </dependency>
        <dependency>
            <groupId>org.apache.struts</groupId>
            <artifactId>struts-extras</artifactId>
            <version>1.3.10</version>
        </dependency>
        <dependency>
            <groupId>org.apache.struts</groupId>
            <artifactId>struts-tiles</artifactId>
            <version>1.3.10</version>
        </dependency>
        <dependency>
            <groupId>jstl</groupId>
            <artifactId>jstl</artifactId>
            <version>1.2</version>
        </dependency>
    ...
</dependencies>

I have errors in my JSP, 我的JSP中有错误,

Example of JSP: JSP示例:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@taglib uri="http://struts.apache.org/tags-html-el" prefix="html" %>
<%@taglib uri="http://struts.apache.org/tags-logic-el" prefix="logic" %>
<%@taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@taglib uri="http://struts.apache.org/tags-bean-el" prefix="beanEl" %>
<%@taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@taglib uri="http://fckeditor.net/tags-fckeditor" prefix="fck" %>
<%@taglib tagdir="/WEB-INF/tags/" prefix="customTag" %>

<!-- Importation du CSS pour le widget Dialog -->
<link rel="stylesheet" type="text/css" href="<html:rewrite page="/css/yui/container.css" />"></link>
<!-- Importation du CSS pour le widget Calendar -->
<link rel="stylesheet" type="text/css" href="<html:rewrite page="/css/yui/calendar.css" />"></link> 

The problem is i have full of errors compared my taglib 问题是我的taglib与我相比充满了错误

Can not find the tag library descriptor for " http://struts.apache.org/tags-html-el " 找不到“ http://struts.apache.org/tags-html-el ”的标记库描述符

Can not find the tag library descriptor for " http://struts.apache.org/tags-logic-el " 找不到“ http://struts.apache.org/tags-logic-el ”的标签库描述符

etc, etc... 等,等等。

why it's wrong 为什么错了

Since the EL tags are generally unnecessary in today's server environments they're bundled separately. 由于在当今的服务器环境中通常不需要EL标签,因此将它们单独捆绑在一起。 (They were before, too, but for different reasons.) (他们也曾经,但是出于不同的原因。)

http://mvnrepository.com/artifact/org.apache.struts/struts-el/1.3.10 http://mvnrepository.com/artifact/org.apache.struts/struts-el/1.3.10

➜  struts  jar tf struts-el-1.3.10.jar | grep tld
META-INF/tld/
META-INF/tld/struts-bean-el.tld
META-INF/tld/struts-html-el.tld
META-INF/tld/struts-logic-el.tld
META-INF/tld/struts-tiles-el.tld

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM