struts2--使用<s:token></s:token>标签防止重复提交
2013-07-12 12:36
519 查看
取个小例子:
这是网页:
这是struts-xml配置文件:
【不懂可以发帖 版主一直在。】
这是网页:
<body> <s:actionerror/> <s:form action="LoginAction" method="post"> <s:token></s:token> <s:textfield name="produ" label="预定产品的编号" /> <s:textfield name="onum" label="预定数量" /> <s:submit value="提交"></s:submit> </s:form> </body>
这是struts-xml配置文件:
<action name="LoginAction" class="sedion.xq.action.LoginAction"> <interceptor-ref name="token"></interceptor-ref> <interceptor-ref name="defaultStack"></interceptor-ref> <result> /dakjfhkah.jsp </result> <result name="invalid.token">/index.jsp</result> </action> or <action name="LoginAction" class="sedion.xq.action.LoginAction"> <interceptor-ref name="tokenSession"></interceptor-ref> <interceptor-ref name="defaultStack"></interceptor-ref> <result> /dakjfhkah.jsp </result> </action>
【不懂可以发帖 版主一直在。】
相关文章推荐
- Struts2标签<s:token />防止表单重复提交
- Struts2----><s:token />标签防止重复提交
- Struts2----><s:token />标签防止重复提交
- struts2基础(一) struts2标签<s:token />防止表单重复提交
- Struts2中使用<s:token>防止表单重复提交
- Struts2----><s:token />标签防止重复提交
- Struts2学习笔记之<s:token/>防止表单重复提交
- Struts2 <s:token>防止表单重复提交 %{}
- Struts2 <s:token/>标签 防止表单多次提交
- Struts2学习笔记之<s:token/>防止表单重复提交
- Struts2 中使用token标签防止刷新和后退进行重复提交
- Struts2 中使用token标签防止刷新和后退进行重复提交
- Struts2 <s:token>防止表单重复提交 %{}
- 2012年笔记-Struts2使用token标签防止重复提交
- <s:token />标签防止重复提交
- Struts2 <s:token/>标签 防止表单多次提交
- struts2 防止表单重复提交主要用的到标签是<s: token />
- Struts2 <s:token/>标签 防止表单多次提交
- <s:token />标签防止重复提交
- Struts2标签之token防止表单重复提交