`import models.japidsample.* `args List posts *{ currently the invoke tag cannot use a none-final local variable as part the parameters. an intermediate final variable should be used to transfer the value. }* `for (int i = 0; i < 3;i++) { `final int j = i; #{invoke Application.echo(j) /} `}

*{ now for object type in short for loop}* `for (final Post p : posts) { #{invoke Application.echoPost(p) /} `}