Runtime components : Runtime Tools : Server Runtime Monitor : Reference : Programming examples
  
Programming examples
Developing the Action class on the server side and implementing specified method
The class name corresponds to the 'actiontype' in the request and the mapping definition in the configuration file, the method name corresponds to the 'action' in the request. If one method serves as an 'action', the only argument must be Map type, and the return value should be a String.
Following is an example of how to develop an Action class:
example of developing an action class
Composing the configuration file
In the example, the new actiontype and its target are added into the actionmappings node. A new treenode is appended.
Following is an example of composing configuration file:
exampleof composing configuration file
Developing a web page
In the "cxtree.html" web page file, the actiontype, action and other required parameters should be given in the XMLHttpRequest.
Following is an example of developing "cxtree.html":
example of developing web page
See also
Reference