![](/img/trans.png)
[英]The absolute uri: http://www.springframework.org/tags cannot be resolved in either web.xml or the jar files deployed with this application
[英]The absolute uri: http://www.springsource.org/tags/form cannot be resolved in either web.xml or the jar files deployed with this application
目前,我使用'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>
所有jar依賴項都位於target / myGoogleAppEngine-0.0.1-SNAPSHOT / WEB-INF / lib中。 該目錄包含:
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
...
在我的address.jsp的開頭,我有以下幾行:
<%@ taglib prefix="form" uri="http://www.springsource.org/tags/form" %>
但是當我執行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
如果打開spring-webmvc-3.1.0-RELEASE.jar/META-INF/spring-form.tld
,使用的是<uri>
<uri>http://www.springframework.org/tags/form</uri>
所以你應該有
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
在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.