Helma logo
helma.org » Home > faq > Can I create a Hop action with a function declaration?

Can I create a Hop action with a function declaration?

Because "Hop actions are JavaScript functions without declaration", it is possible to create a Hop action by a function declaration, e.g.

function test_action() {
   res.writeln("Hello, World");
}
will give you a Hop action callable via e.g. http://localhost:8080/myApp/test.


Up: Frequently Asked Questions (FAQ)
Previous: How can I call an action file from JavaScript? Next: How can I set a global variable?

... comment


Page last modified on 2002-03-12 13:49 by hns