Lucee Tag Reference
<cfimport>
To import a JSP Taglibrary or a CFML Custom Tag Directory
Body
This tag can't have a body.
Example
<cfimport [path=string] [prefix=string] [taglib=string]>
This tag is also supported within cfscript
<cfscript> import string; </cfscript>
Attributes
The attributes for this tag are fixed. Except for the following attributes no other attributes are allowed.
Name | Type | Required | Description |
---|---|---|---|
path | string | No | path of CFC to be imported |
prefix | string | No | 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. |
taglib | string | No | 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. |