I am integrating the displaytag library into my Spring MVC Application. I am using Ant for builds in my project. I have followed the installation directions from the website, which you can find here
Installation Instructions for Displaytag
It states that the dependencies for displaytag use are the following
commons-logging
commons-lang
commons-collections
commons-beanutils
log4j
I have downloaded and dropped all of these jars to the WEB-INF/lib directory. I have also selected the Build Path -> Configure Build Path -> Add Jar option in Eclipse to configure the build path. I am still receiving an error in my JSP
telling me
Can not find tag library descriptor for http://displaytag.sf.net
and it is underlining the URI in the following tag lib directive
<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>
I am aware of the many posts with this error, and that it typically has to do with dropping the correct Jars in the lib directory or specifying an incorrect URI, but I have copied and pasted the above code from the website. Does anybody know anything else that I need to check/configure?
I assume that you put the
displaytag.jarfile inWEB-INF/liband on your build path as well …The message is telling you that it cannot find the TLD file for the tag library. Eclipse should be able to find the TLD file in the
META-INFdirectory ofdisplaytag.jarwith a file suffix of.tld.I guess another possibility is that the
.tldisn’t in the JAR file.EDIT
No idea. There are “.tld” files in the expected place in both displaytag 1.1 and 1.2, based on the copies I downloaded.
I guess it is possible that you had a bad download, or that the displaytag 1.2 TLD is broken in some non-obvious way. Or maybe it is just some random Eclipse bug …