Net.Data Language Environment Reference
After you have created the Java function, defined the cliette class, and
configured Net.Data, you can run the macro file containing references
to the Java function.
- Create a macro file that calls your Java functions. For example,
the function call, myfctcall calls the sample function provided with
Net.Data, using the cliette DTW_JAVAPPS.
%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( ... ....)
%}
- Start the Connection Manager. See the performance chapter of
Net.Data Administration and Programming Guide for more
information about Connection Manager.
- Launch the macro and invoke Net.Data using an HTML link, HTML form,
or URL statement. For example, invoke the Net.Data macro file,
mymacro.d2w, with the following URL statement:
http://myserver/cgi-bin/dt2www/mymacro.d2w/report
[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]