Struts2 基于注解的 防止重复提交配置

基于方法级别的action配置。

 

@Action(value="/sell/publishQuotation",  interceptorRefs={@InterceptorRef("token"),@InterceptorRef("defaultStack")},
            results={
				@org.apache.struts2.convention.annotation.Result(name="success", location="/WEB-INF/jsp/......),
				@org.apache.struts2.convention.annotation.Result(name="input" , location="/WEB-INF/jsp/......"),
				@org.apache.struts2.convention.annotation.Result(name="invalid.token",location="/WEB-INF/jsp/.."),
				@org.apache.struts2.convention.annotation.Result(name="error",location="/WEB-INF/jsp/....")
			}
          )

public String excute(){

        ...
        ....

}

你可能感兴趣的:(注解,struts2,重复提交)