To import a JSP Taglibrary or a CFML Custom Tag Directory

This tag cannot have a body.

This tag is also supported within <cfscript>

<cfimport taglib=string prefix=string path=string >
Attribute Description
string, optional

Path to a custom tag library or a JSP tld

As cfimport is a compiler directive, Application.cfc mappings won't work, but mappings configured via the web admin will.

string, optional

Prefix by which to access the imported custom CFML tags JSP tags.

If you import a CFML custom tag directory and specify an empty value, "", for this attribute, you can call the custom tags without using a prefix. You must specify and use a prefix for a JSP tag library.

string, optional

path of CFC to be imported


Format for cfimport

<cfimport taglib="lib" prefix="t">

See also