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 人气:264
分享到:
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 conte

  • 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

  • Struts2 result type (type) Summary 2011-01-12

    In default, <result> tag type attribute value is "dispatcher" (actually forward, forward). Developers can specify their own needs different types, such as redirect, stream and so on. As shown in the following code: <result name=

  • 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=

  • 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.dispatche

  • 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 Inter

  • 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.xwork.Res

  • To prevent duplicate form submission Struts 2010-07-21

    In Struts, the form submitted to involve at least two Struts actions: The first form is displayed to the user responsible for The second form is responsible for users to process data submitted Our first action in the form to generate a Token (tag) an

iOS 开发

Android 开发

Python 开发

JAVA 开发

开发语言

PHP 开发

Ruby 开发

搜索

前端开发

数据库

开发工具

开放平台

Javascript 开发

.NET 开发

云计算

服务器

Copyright (C) codeweblog.com, All Rights Reserved.

CodeWeblog.com 版权所有 黔ICP备15002463号-1

processed in 0.137 (s). 12 q(s)