【发布时间】:2013-12-29 13:53:51
【问题描述】:
目前,我使用 'Maven' 项目,我在 pom.xml 中放入当前依赖项以使用 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 中。该目录包含:
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
【问题讨论】: