struts2 submit inside to prevent the refresh

Forum Forum when doing the project in the submission of a message delivered after. Page or in the current page and found that every time you refresh the release of records of the last will be resubmitted once. Hey, headache. Thought to prevent the duplication of submission done a lot of trouble, I thought of other methods. Work pays off, finally, I have no use any mechanism to prevent duplication of submission to the resolved.
My framework is spring2.1 + struts2.0 + hibernate 2.4;
Add a record jump returns the string SUCCESS, application struts2.0 the struts-config.xml preparation <result type="redirect-action"> this label attribute to return to the original page requested by the list method. No matter how you then repeat the operation will not be submitted.

分类:Java 时间:2010-05-02 人气:359
blog comments powered by Disqus


  • struts2 strus.xml the result type, and the meaning of 2010-03-29

    One submitted to the server, the processing generally can be divided into two phases, the first phase of server status query (query or update the database), the second phase to select a suitable results page returns to the user (here, talk about the

  • Result type. Interceptors. Type converter - 2010-12-15

    Result type Action processing the user request, it will return a normal string, the string is a common logical view. Struts2 by configuring a logical view and physical view of the mapping, once the system returns to a logical view of the system will

  • Result type common use struts2 2010-09-12

    1, dispatcher (1) as the default result type, under normal circumstances will we struts.xml like this: <result name="success"> / main.jsp </ result> Written using two or more default, the complete wording is: <result name="su

  • struts2.xml property description in the result type 2010-11-30

    chain Action to deal with chains, was able to get the jump on the action in the pages of values, such as request information. com.opensymphony.xwork2.ActionChainResult dispatcher Used to turn the page, usually dealing with JSP org.apache.struts2.disp

  • There is no result type defined for type 'json'... 2012-06-21

    struts2的json plugin可以实现struts2和json的完美结合,struts2的官方文档: 刚刚整合struts2和json出现了个小问题There is no result type defined for type 'json', 在struts.xml中有如下action定义 <action name="menu" class="com.l

  • struts2整合json出现no result type defined for type 'json'的解决方法 2013-12-12

    struts2的json plugin可以实现struts2和json的完美结合,由于本篇主要是介绍整合过程中遇到的问题,所以编程实现的方法这里就不重复了,具体可以参看struts2的官方文档: 我在struts.xml中有如下action定义: <action name="product_group" class="customers.products&quo

  • webwork in action result type 2010-04-13

    And Webwork1.x different ,Webwork2 After you perform the Action , The Result corresponds to one Result Type, And the Result Type can be based on the specific application or environment. Definition, need only implement a com.opensymphony.xwork.Result

  • File upload using struts tags Times argument type mismatch 2010-04-13

    File upload using struts tags Times argument type mismatch 1. Must be in html: form below to add enctype = "multipart / form-data" 2. We should change the post method EG: FROM: public class CustomerForm extends ActionForm ( FormFile file; public

  • struts2 redirect and dispatcher result type of difference 2010-04-21

    struts2 in the result type of result is frequently used redirect and dispatcher, default result result type dispatcher. The difference is the type of results that will redirect to redirect requests to other resources, user requests for information wi

  • struts2 (Webwork2) of the Action Result Type 2010-11-08

    And Webwork1.x different, Webwork2 after the implementation of the Action, which corresponds to a Result Result Type, and this Result Type Depending on the application can be defined or the environment their own, just to achieve com.opensymphony.xwor

iOS 开发

Android 开发

Python 开发



PHP 开发

Ruby 开发






Javascript 开发

.NET 开发



Copyright (C), All Rights Reserved. 版权所有 闽ICP备15018612号

processed in 0.045 (s). 13 q(s)