Struts2注解

需要包 struts2-convention-plugin.jar
@Namespace("/xxxx/zzz")
public class ConnectionAction {


    /** Action执行方法* */
    @Action(value = "ConnectManage", results = {
            @Result(name = "success", location = "aaa.jsp"),
            @Result(name = "faile", location = "bbb.jsp") }, interceptorRefs = { @InterceptorRef(value = "mystack") })
    public String execute() {

        
    }


}

 

posted @ 2014-06-27 18:05  天地大同  阅读(114)  评论(0编辑  收藏  举报