Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can not find the tag library descriptor of springframework

I'm trying to follow the example of spring JPetStore but I get an error in the JSP pages in the line that references the lib tag spring:

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

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

What is the URL of this library?

Is there any way to avoid the direct dependence on this URL?

Thanks in advance

like image 346
JLBarros Avatar asked Nov 18 '10 20:11

JLBarros


People also ask

How install TLD file in eclipse?

Just go for New->XML file and name the file as yourname. tld thats all !

Can not find the tag library descriptor for Struts tags?

Can not find the tag library descriptor for "struts-tags" error may be encountered in your struts2 projects due to the following reasons, You have missed out on adding a struts code jar file in your project: struts2-core-2. x.x.x.jar. If you have added it recently, just do a clean and build of your project.


1 Answers

I know it's an old question, but the tag library http://www.springframework.org/tags is provided by spring-webmvc package. With Maven it can be added to the project with the following lines to be added in the pom.xml

<properties>     <spring.version>3.0.6.RELEASE</spring.version> </properties>  <dependencies>      <dependency>         <groupId>org.springframework</groupId>         <artifactId>spring-webmvc</artifactId>         <version>${spring.version}</version>     </dependency> 

Without Maven, just add that jar to your classpath. In any case it's not necessary to refer the tld file directly, it will be automatically found.

like image 110
stivlo Avatar answered Sep 20 '22 09:09

stivlo