You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Lasse Pommerenke <lp...@j2l.de> on 2002/08/29 12:23:43 UTC
Re: Problem when form is submitted and destination page is refreshed
> now when i refresh this page (the
> user list page) the form is getting submitted again and i get a duplicate
> user error.
Do you have your browser refreshing that page? In this case, the browser
knows that the page is a result of submitting a form and simply submits
the form data again. (Well, that's what my browsers do)
Have your browser request that page anew with this <meta refresh>-thing.
I cannot tell you how to get this line in the <HEAD>-section though...
---Lasse
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Problem when form is submitted and destination page is
refreshed
Posted by David Worms <da...@simpledesign.com>.
Not sure if this might help, but the code is always usefull at some point:
@ don't refresh (java)
response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
response.setHeader("Pragma","no-cache"); //HTTP 1.0
response.setDateHeader ("Expires", 0); //prevents caching at proxy server
@refresh (html)
<meta http-equiv="Refresh" Content = "3;URL =indexFrame.html">
(3 is the number of second)
David Worms
On 8/29/02 3:23 AM, "Lasse Pommerenke" <lp...@j2l.de> wrote:
>> now when i refresh this page (the
>> user list page) the form is getting submitted again and i get a duplicate
>> user error.
>
> Do you have your browser refreshing that page? In this case, the browser
> knows that the page is a result of submitting a form and simply submits
> the form data again. (Well, that's what my browsers do)
>
> Have your browser request that page anew with this <meta refresh>-thing.
> I cannot tell you how to get this line in the <HEAD>-section though...
>
>
> ---Lasse
>
>
> --
> To unsubscribe, e-mail: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: Problem when form is submitted and destination page is refreshed
Posted by raghuram <ra...@jalvamedia.com>.
yes..the browser is resubmitting..can i remove the action parameter before
setting the destination page. i've tried that but it doesnt seem to be
getting removed.
thanks
raghu
-----Original Message-----
From: Lasse Pommerenke [mailto:lp@j2l.de]
Sent: Thursday, August 29, 2002 3:54 PM
To: Turbine Users List
Subject: Re: Problem when form is submitted and destination page is
refreshed
> now when i refresh this page (the
> user list page) the form is getting submitted again and i get a duplicate
> user error.
Do you have your browser refreshing that page? In this case, the browser
knows that the page is a result of submitting a form and simply submits
the form data again. (Well, that's what my browsers do)
Have your browser request that page anew with this <meta refresh>-thing.
I cannot tell you how to get this line in the <HEAD>-section though...
---Lasse
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>