Controller

The TaskController handles user-invoked actions.

The actions that the controller receives from the view are string commands in their purest form. Sometimes these have name/value pair arguments, but the most commonly used TaskController-derivative, FunctionTaskController, interprets these commands to be no-argument functions of the FunctionTaskController subclass that the author has written.

To use FunctionTaskController, your subclass must be public, and the function to execute must be public and take no arguments. For example, a command like "myFunction" is represented in the HTML as <a href="staraction:myFunction">.When clicked, it executes a function in your FunctionTaskController subclass with the signature public void myFunction().