绝对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

查看:1335
本文介绍了绝对uri:http://www.springsource.org/tags/form不能在web.xml或与此应用程序一起部署的jar文件中解析的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当前,我使用一个"Maven"项目,在其中将当前依赖项放入pom.xml中,以使用org.springframework.version = 3.1.0.RELEASE的Spring框架:

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 :

<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中.该目录包含:

All the jar dependencies are sitting in 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
...

在address.jsp的开头,我有以下一行:

At the beginning of my address.jsp, I've the following line :

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

但是执行address.jsp时出现以下错误:

But I've the following error when I execute the 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>

If you open up spring-webmvc-3.1.0-RELEASE.jar/META-INF/spring-form.tld the <uri> to use is

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

所以你应该拥有

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

这篇关于绝对uri:http://www.springsource.org/tags/form不能在web.xml或与此应用程序一起部署的jar文件中解析的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆