[code="java"]@Namespace("/test")@Result(name = "success", value = "/templates/home.html", type = FreemarkerResult.class)public class AnnotationAction implements Action {public String execute() throws Exception {return SUCCESS;}}[/code]
看文章 说明http://zhaosoft.iteye.com/blog/272290