| Contents > Developing ColdFusion MX Applications > Building Custom CFXAPI Tags > Writing a Java CFX tag > Calling the CFX tag from a ColdFusion page |
|
|
|
|
||
You call Java CFX tags from within ColdFusion pages by using the name of the CFX tag that is registered on the ColdFusion MX Administrator CFX tags page. This name should be the prefix cfx_ followed by the class name (without the .class extension).
cfx_MyHelloColdFusion).MyHelloColdFusion).You can now call the tag from a ColdFusion page.
<html> <body> <cfx_MyHelloColdFusion NAME="Les"> </body> </html>
http://localhost/cfdocs/testjavacfx.cfm
ColdFusion processes the page and returns a page that displays the text "Hello, Les." If an error is returned instead, check the source code to make sure you have entered it correctly.
|
|
||
| Contents > Developing ColdFusion MX Applications > Building Custom CFXAPI Tags > Writing a Java CFX tag > Calling the CFX tag from a ColdFusion page |
|
|
ColdFusion 9 | ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | Bug Reporting
Version 6.1
Comments are no longer accepted for ColdFusion MX 6.1. ColdFusion 8 is the current version.