jarcoldfusioncoldfusion-8cfimport

How do I reference a custom tag path in cfImport?


I'm trying to add CFGroovy to one of my web applications. I added the jar (which I renamed to cfgroovy.jar) to what I believe is our custom tags directory:

C:\JRun4\servers\DDDI\cfusion.ear\cfusion.war\WEB-INF\cfusion\CustomTags

Our Sys Admin showed me that that path is currently in our "Extensions > Custom Tag Paths" in the Admin Console. Now I want to use it. So I'd use a cfimport tag, but I don't know what goes in the taglib attribute:

<cfimport prefix="groovy" tagLib="XXXXX">

I'm sure it's simple I just have no clue, and I can't find any clear documentation on it.


Solution

  • Have you looked at the Adobe Coldfusion Docs page? It looks like its a path relative to the webroot to the file location of the JAR file.

    If your CustomTags directory is not in the web root, you may want to make a new mapping in the ColdFusion admin to the folder the JAR is in (or a different folder - I'm not sure if putting the CustomTags in the web root is a good idea, security-wise).