ColdFusion: How to Change an Action in Java

If you are building a program with ColdFusion coding, you may occasionally want to employ a command ColdFusion cannot handle. Some actions will only work using a specific language, such asJava. If you want to use Java code to change an action in your ColdFusion program, you have to trigger the code so the program identifies it properly. This only requites a few brackets to tell your software to read this as Java code, not ColdFusion.

Instructions

    • 1

      Open your ColdFusion code.

    • 2

      Enter your Java function code in the “Functions” section of the code.

    • 3

      Type “<cfscript>” (no quotes) before the Java code and “</cfscript>” after. This identifies it as Java.

    • 4

      Enter your Java output code (where you call the Java function) wherever in your program you want to action change to appear.

    • 5

      Type “<cfoutput>” (no quotes) before the Java code and “</cfoutput>” after. Again, this tells the program to run the action as Java.

Related Searches:

References

Comments

Related Ads

Featured