genxgeek
genxgeek

Reputation: 13347

Maven reference for springframework.org/tags form per spring source ide?

Hi new to java and I'm getting the following errors per the following lines from a .jsp that I have inherited. Using spring source as my editor.

NOTE: This loads fine per my latest eclipse (kepler) IDE.

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

Errors:

Can not find the tag library descriptor for "http://www.springframework.org/tags/ form" Can not find the tag library descriptor for "http://www.springframework.org/ tags"

I have the following defined in my pom.xml:

<spring.version>3.2.1.RELEASE</spring.version>

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

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

Upvotes: 3

Views: 25609

Answers (4)

Alvaro
Alvaro

Reputation: 75

For me, it worked seamlessly the answer provided by user3078016..

I simply added:

<dependency>
    <groupId>taglibs</groupId>
    <artifactId>standard</artifactId>
    <version>1.1.2</version>
</dependency>

To my pom.xml and voilá, everything is clean now..

BTW, version 1.1.2 is actually the last (and current) version of this lib since 2005..

Thank you..

Upvotes: 0

Riddhi Gohil
Riddhi Gohil

Reputation: 1818

Add the following dependency

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-web</artifactId>
</dependency>

Upvotes: 0

xYan
xYan

Reputation: 607

Try deleting the spring-mvc dependency, updating the maven project without that dependency and then re-add the spring-mvc dependency. Probably the .jar file is corrupted (as was the case in my project).

Upvotes: 4

user3078016
user3078016

Reputation: 51

I added:

    <dependency>
    <groupId>taglibs</groupId>
    <artifactId>standard</artifactId>
    <version>1.1.2</version>
   </dependency>

To mypom.xml file this will resolved the issue.

Upvotes: 5

Related Questions