10.3. CFX Custom Tags
Another popular way to gain the power of the Java language while working within the ease of the ColdFusion environment is to write CFX custom tags.
To write a CFX custom tag, you write the Java code that will create the object you want to use. Then you register the code with the ColdFusion Administrator so that ColdFusion knows what code base to run when you invoke the tag.
Before writing your own custom tags, it is not a bad idea to look at the CFX tags that Macromedia ships with the CFMX server. You can find these source files in <CFMX_HOME>\cfx\java\distrib\examples. This directory contains several examples, ranging from a simple “Hello, World” tag, to one that creates custom graphics for you.
It is a little extra work ...
Get Java™ for ColdFusion® Developers now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.