<cfimport>

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
taglib
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.

prefix
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.

path
string, optional

path of CFC to be imported

Examples

Format for cfimport

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

See also