读书人

struts2 平添 防止重复提交 token

发布时间: 2013-07-16 22:38:05 作者: rapoo

struts2 添加 防止重复提交 token

?

????? <exception-mapping result="error" exception="java.lang.Exception"/>

?

?

??????????? <interceptor-ref name="defaultStack"/>

??????????? <interceptor-ref name="tokenSession"/>

?????????? <!--如果重复提交、不会跳转到error.jsp-->

??????????? <result name="invalid.token">error.jsp</result>

?????????? <result? name="success">添加成功跳转页.jsp</result>

?

</action>

读书人网 >编程

热点推荐