在您建立 Java 函數、定義 cliette 類別及架構 Net.Data 之後, 您就可以執行含有 Java 函數參照的巨集檔。
%function (DTW_JAVAPPS) myfctcall( ....parameters from macro file ....)
%{ to call the sample provided with Net.Data %}
%function (DTW_JAVAPPS) reverse_linel(str);
%HTML(report){
you should see the string "Hello World" in reverse.
@reverse_line("Hello World")
You should have the result of your function call.
@myfctcall( ... ....)
%}
http://myserver/cgi-bin/dt2www/mymacro.d2w/report