Where is Displaytag.tld(not jar)

Vani picture Vani · Dec 2, 2009 · Viewed 8.7k times · Source

I am not seeing the .tld file in my download folder. I only see JAR files. What I am missing?

My problem is that, I can't refer like this in my JSP:

<%@ taglib uri="http://displaytag.sf.net" prefix="display" %>

I get some error. Hence want to download .tld and put it under local WEB-INF folder and then change my JSP like this:

<%@ taglib uri="/WEB-INF/displaytag.tld" prefix="display" %>

Answer

BalusC picture BalusC · Feb 17, 2010

You don't need the loose TLD. It's already inside the JAR file. Just put the downloaded JAR file in /WEB-INF/lib. That's all. No, not in /WEB-INF, this is not covered by the default classpath.

You only need to ensure that the taglib URI is correct. Else it will indeed complain about that. The correct one is usually to be found in the documentation of the library in question.