Action


Controller and the public parameterless methods defined in it are called an Action. Action is the smallest unit of request.

The Action method must be declared in the Controller. The method must be public and have no formal parameters.

ublic class HelloController extends Controller {
public void index() { renderText("This method is an action");
}
public void test() { renderText( "This method is an action");
}
}


Two Actions are defined in the above code: HelloController.index(), HelloController.test(). The getPara, getModel series methods, setAttr method and render series methods are provided in Controller

for Action to use.