简体   繁体   English

绝对的uri:http://www.springsource.org/tags/form无法在web.xml或使用此应用程序部署的jar文件中解析

[英]The absolute uri: http://www.springsource.org/tags/form cannot be resolved in either web.xml or the jar files deployed with this application

Currently, I use a 'Maven' project where I put in my pom.xml the current dependencies to use Spring Framework where org.springframework.version = 3.1.0.RELEASE : 目前,我使用'Maven'项目,我在我的pom.xml中放入当前的依赖项来使用Spring Framework,其中org.springframework.version = 3.1.0.RELEASE:

<dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-core</artifactId>
   <version>${org.springframework.version}</version>
</dependency>

<dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-context</artifactId>
   <version>${org.springframework.version}</version>
</dependency>

<!-- Spring MVC framework -->
<dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-webmvc</artifactId>
    <version>${org.springframework.version}</version>
</dependency>

<dependency>
    <groupId>org.springframework.security</groupId>
    <artifactId>spring-security-taglibs</artifactId>
    <version>${org.springframework.version}</version>
</dependency>

All the jar dependencies are sitting in target/myGoogleAppEngine-0.0.1-SNAPSHOT/WEB-INF/lib. 所有jar依赖项都位于target / myGoogleAppEngine-0.0.1-SNAPSHOT / WEB-INF / lib中。 This directory contains : 该目录包含:

spring-aop-3.1.0.RELEASE.jar
spring-beans-3.1.0.RELEASE.jar
spring-webmvc-3.1.0.RELEASE.jar
spring-web-3.1.0.RELEASE.jar
spring-security-taglibs-3.1.0.RELEASE.jar
spring-security-web-3.1.0.RELEASE.jar
...

At the beginning of my address.jsp, I've the following line : 在我的address.jsp的开头,我有以下几行:

<%@ taglib prefix="form" uri="http://www.springsource.org/tags/form" %>

But I've the following error when I execute the address.jsp : 但是当我执行address.jsp时,我遇到以下错误:

Error 500
org.apache.jasper.JasperException: The absolute uri: http://www.springsource.org/tags/form cannot be resolved in either web.xml or the jar files deployed with this application

If you open up spring-webmvc-3.1.0-RELEASE.jar/META-INF/spring-form.tld the <uri> to use is 如果打开spring-webmvc-3.1.0-RELEASE.jar/META-INF/spring-form.tld ,使用的是<uri>

<uri>http://www.springframework.org/tags/form</uri>

So you should have 所以你应该有

<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>

Add this dependency in pom.xml 在pom.xml中添加此依赖项

<dependency>
    <groupId>org.springframework.security</groupId>
    <artifactId>spring-security-taglibs</artifactId>
    <version>Your Security Version</version>
</dependency>

暂无
暂无

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

相关问题 绝对uri:http://www.springframework.org/tags不能在web.xml或与此应用程序一起部署的jar文件中解析 - The absolute uri: http://www.springframework.org/tags cannot be resolved in either web.xml or the jar files deployed with this application Struts 绝对 uri:http://struts.apache.org/tags-bean 无法在 web.xml 或与此应用程序一起部署的 jar 文件中解析 - Struts The absolute uri: http://struts.apache.org/tags-bean cannot be resolved in either web.xml or the jar files deployed with this application 为什么会出现错误“绝对 uri:[http://tiles.apache.org/tags-tiles] 无法在 web.xml 或部署的 jar 文件中解析” - Why getting error “The absolute uri: [http://tiles.apache.org/tags-tiles] cannot be resolved in either web.xml or the jar files deployed” 如何解决&#39;绝对uri:http://java.sun.com/portlet无法在web.xml或使用此应用程序部署的jar文件中解析&#39; - How to fix 'The absolute uri: http://java.sun.com/portlet cannot be resolved in either web.xml or the jar files deployed with this application' 无法在web.xml或使用此应用程序部署的jar文件中解析绝对uri - The absolute uri cannot be resolved in either web.xml or the jar files deployed with this application 绝对的uri:http://java.sun.com/jsp/jstl/core无法在web.xml或使用此应用程序部署的jar文件中解析 - The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this app 绝对uri:http://java.sun.com/jsp/jstl/core不能在web.xml或tomcat中与此应用程序错误一起部署的jar文件中解决 - Absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application error in tomcat JBoss 6x绝对uri:http://java.sun.com/jsp/jstl/core不能在web.xml或与此应用程序一起部署的jar文件中解析 - JBoss 6x The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application JSTL错误:绝对uri:http://java.sun.com/jsp/jstl/core不能在web.xml或与此应用程序一起部署的jar文件中解析 - JSTL error: The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application JSTL:绝对uri:无法在web.xml或与此应用程序一起部署的jar文件中解析http://java.sun.com/jsp/jstl/core - JSTL: The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM