1.表单使用<s:form>这种提交,属性有action namespeace
2.在表单中添加<s:token/>标签
3.在strtus.xml配置文件中添加
<interceptor-ref name="defaultStack"/>
<interceptor-ref name="token"/>
<result name="invalid.token">(重复提交后转向页面)</result>
这样才能使用struts2的表单重复提交验证.
1.表单使用<s:form>这种提交,属性有action namespeace
2.在表单中添加<s:token/>标签
3.在strtus.xml配置文件中添加
<interceptor-ref name="defaultStack"/>
<interceptor-ref name="token"/>
<result name="invalid.token">(重复提交后转向页面)</result>
这样才能使用struts2的表单重复提交验证.