If a function is expected to run on the browser side, the function should be implemented by using Javascript.
If a function is expected run on the server side, the function should be implemented by using Java language. The function should be declared as public and static method.
The following sample demonstrates how to implement a global function on the server side.
The following sample demonstrates how to implement a global function on the browser side.