You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Nanduri, Amarnath" <Am...@Agilquest.com> on 2001/03/02 22:35:26 UTC

double submission of forms

Hi all,
 
        Will struts be able to handle the double posting of forms ? 
For example if a user submits a form, and when the processing is taking
place on the server, he submits information again (or uses the back button
of browser to submit information). Will struts be able to ignore the second
posting of form ? Thanks  alot.

cheers,
Amar..

Re: Article on struts

Posted by "Craig R. McClanahan" <Cr...@eng.sun.com>.
Incze Lajos wrote:

> And now, something completly different: the URL:
>
> http://www.sys-con.com/java/archives/0603/mcclanahan/

Yah, I knew about this one :-).  Just wasn't sure when it would finally
get published.

Craig



Article on struts

Posted by Incze Lajos <in...@mail.matav.hu>.
And now, something completly different: the URL:

http://www.sys-con.com/java/archives/0603/mcclanahan/

RE: Article on struts (inclusive list)

Posted by malcolm davis <ma...@nuearth.com>.
Might as well make the Struts article list inclusive:

bluestone:
http://gallery.bluestone.com/scripts/SaISAPI.dll/Gallery.class/demos/trailMa
ps/index.jsp

silverstream: (download pdf)
http://www.silverstream.com/website/SilverStream/Pages/seminar_virt_archives
_JSP_tf.html

others:
http://www.sys-con.com/java/archives/0603/mcclanahan/

http://www.husted.com/about/struts/

http://www-106.ibm.com/developerworks/library/j-struts/

http://www.informit.com/books/authors/author_template/index.asp?session_id={
F726CFEE-6E95-4338-B2C3-8F30294A51DD}&authorid={A08A00B0-71BB-42DB-9B29-0887
9A9A7ABE}&t={94AE5B48-1D7D-462A-A4A6-83CE19EC0705}&n={4641FAF9-E21F-4902-8F6
E-0C8FAF114C62}

http://www.javaworld.com/javaworld/jw-12-2000/jw-1201-struts_p.html

NOTE:
Does not include paper journals, all the web MVC articles, and things like
http://www.javaworld.com/javaworld/jw-11-2000/jw-1103-presentation_p.html

Did we miss anyone?


 >>-----Original Message-----
 >>From: Ted Husted [mailto:news.ted@husted.com]
 >>Sent: Sunday, March 04, 2001 1:34 PM
 >>To: struts-user@jakarta.apache.org
 >>Subject: Re: Article on struts
 >>
 >>
 >>see
 >>
 >><  http://www.sys-con.com/java/archives/0603/mcclanahan/  >
 >>
 >>and
 >>
 >>< http://www.husted.com/about/struts/ >
 >>
 >>
 >>Maya Muchnik wrote:
 >>>
 >>> Hi,
 >>> No link.
 >>>
 >>> Incze Lajos wrote:
 >>>
 >>> > Yet another article on Struts. You won't believe it ...
 >>
 >>-- Ted Husted, Husted dot Com, Fairport NY USA.
 >>-- Custom Software ~ Technical Services.
 >>-- Tel 716 737-3463.
 >>-- http://www.husted.com/about/struts/


Re: Article on struts

Posted by Ted Husted <ne...@husted.com>.
see 

<  http://www.sys-con.com/java/archives/0603/mcclanahan/  >

and 

< http://www.husted.com/about/struts/ >


Maya Muchnik wrote:
> 
> Hi,
> No link.
> 
> Incze Lajos wrote:
> 
> > Yet another article on Struts. You won't believe it ...

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 737-3463.
-- http://www.husted.com/about/struts/

Re: Article on struts

Posted by Maya Muchnik <mm...@pumatech.com>.
Hi,
No link.

Incze Lajos wrote:

> Yet another article on Struts. You won't believe it ...


Re: Article on struts

Posted by Ted Husted <ne...@husted.com>.
malcolm davis wrote:
> 
> Where is the link?

< http://www.sys-con.com/java/archives/0603/mcclanahan/ >

now along with the others at

< http://www.husted.com/about/struts/ >

-Ted.

RE: Article on struts

Posted by malcolm davis <ma...@nuearth.com>.
Where is the link?

[
yes i can believe it, multiple journals, both online and other,
have published articles on struts, a product that is in beta.
even i have published one.  you would think M$ marketing had 
been involved with this product. :)
]

 >>-----Original Message-----
 >>From: Incze Lajos [mailto:incze@mail.matav.hu]
 >>Sent: Friday, March 02, 2001 3:39 PM
 >>To: struts-user@jakarta.apache.org
 >>Subject: Article on struts
 >>
 >>
 >>Yet another article on Struts. You won't believe it ...

Article on struts

Posted by Incze Lajos <in...@mail.matav.hu>.
Yet another article on Struts. You won't believe it ...

Re: double submission of forms

Posted by John Raley <jo...@moonlight.com>.
Struts will not do anything special in this case (that I know of...)

To guard against multiple submission you can put a unique id in a hidden
field.  If you've already processed the request with that id, you ignore it.
(For example, if you're an ecommerce site, your database would store the id in
the transaction record, and not process duplicates.)

"Nanduri, Amarnath" wrote:

> Hi all,
>
>         Will struts be able to handle the double posting of forms ?
> For example if a user submits a form, and when the processing is taking
> place on the server, he submits information again (or uses the back button
> of browser to submit information). Will struts be able to ignore the second
> posting of form ? Thanks  alot.
>
> cheers,
> Amar..


Re: double submission of forms

Posted by Spencer Smith <sp...@newdestiny.net>.
I'm not sure about fixing that server side, but here is some javascript to
stop people from doing this:

Double Posting Fix:

<script language="JavaScript">
  <!--
   numberoftimes = 0;

   function checkform(){
   numberoftimes += 1;
   if (numberoftimes > 1)


         var themessage = "Please be patient while your message is posted.
You have already submitted this form.";
         if (numberoftimes == 3) {
                themessage = "Do no press post multiple times.  Your message
will be posted shortly.";
         }
          alert(themessage);
          return false;
   }
   }
</script>

For the form's onsubmit value:

<form name="postform" action="post.cfm" enctype="multipart/form-data"
method="post" onsubmit="return checkform()">

----- Original Message -----
From: Nanduri, Amarnath <Am...@Agilquest.com>
To: <st...@jakarta.apache.org>
Sent: Friday, March 02, 2001 1:35 PM
Subject: double submission of forms


>
> Hi all,
>
>         Will struts be able to handle the double posting of forms ?
> For example if a user submits a form, and when the processing is taking
> place on the server, he submits information again (or uses the back button
> of browser to submit information). Will struts be able to ignore the
second
> posting of form ? Thanks  alot.
>
> cheers,
> Amar..
>
>


Re: double submission of forms

Posted by Rob Leland <Ro...@freetocreate.org>.
Search the www.mail-archives.com for the phrase 'token'

The Action.saveToken methods and Action.resetToken
methods will do what you want on the server side.

-Rob

"Nanduri, Amarnath" wrote:
> 
> Hi all,
> 
>         Will struts be able to handle the double posting of forms ?
> For example if a user submits a form, and when the processing is taking
> place on the server, he submits information again (or uses the back button
> of browser to submit information). Will struts be able to ignore the second
> posting of form ? Thanks  alot.
> 
> cheers,
> Amar..