You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Michael Delamere <ho...@michael-delamere.de> on 2002/09/06 08:28:38 UTC
[Redirect] Caching problem with redirect... (new attempt)
Hi,
I hope you don´t mind me asking again, but I got no answer yesterday....
I´m programming an application with a shopping cart. Originally I used a
normal forward. The downside of this though, was that when the user pressed
the refresh button, the article incremented by one every time.
Ok, so I thought (and read) that the idea would be to use the
forward-redirect. The only problem I have now is that the pages are cached!
I solved the problem originally by adding pragma no-cache to the response
header. This actually worked when using the normal forward. The pages
where no longer cached. Now why doesn´t this work with a redirect? What´s
the difference?
I could really do with some help.
Regards,
Michael
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: [Redirect] Caching problem with redirect... (new attempt)
Posted by James Mitchell <jm...@telocity.com>.
Here's a good response from Craig..
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg35600.html
Scroll down to see explaination
James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the "Open Minded Developer Network"
http://www.open-tools.org/struts-atlanta
> -----Original Message-----
> From: Michael Delamere [mailto:home@michael-delamere.de]
> Sent: Friday, September 06, 2002 3:22 AM
> To: Struts Users Mailing List
> Subject: Re: [Redirect] Caching problem with redirect... (new attempt)
>
>
> Thanks, hopefully I´ll know what you are talking about once I´ve read the
> docs... :-)
>
> Regads,
>
> Michael
>
>
> ----- Original Message -----
> From: "James Mitchell" <jm...@telocity.com>
> To: "Struts Users Mailing List" <st...@jakarta.apache.org>
> Sent: Friday, September 06, 2002 8:45 AM
> Subject: RE: [Redirect] Caching problem with redirect... (new attempt)
>
>
> > > -----Original Message-----
> > > From: Michael Delamere [mailto:home@michael-delamere.de]
> > > Sent: Friday, September 06, 2002 2:29 AM
> > >
> > >
> > > Hi,
> > >
> > > I hope you don´t mind me asking again, but I got no answer
> yesterday....
> > >
> > >
> > > I´m programming an application with a shopping cart.
> Originally I used
> a
> > > normal forward. The downside of this though, was that when the
> > > user pressed
> > > the refresh button, the article incremented by one every time.
> >
> > You can eliminate this by utilizing token verification that is
> part of the
> > framework.
> > See the code in the struts-example or docs for exact usage and benefits.
> >
> > >
> > > Michael
> > >
> > >
> >
> > HTH
> >
> > James Mitchell
> > Software Engineer\Struts Evangelist
> > Struts-Atlanta, the "Open Minded Developer Network"
> > http://www.open-tools.org/struts-atlanta
> >
> >
> >
> > --
> > 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>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: [Redirect] Caching problem with redirect... (new attempt)
Posted by Michael Delamere <ho...@michael-delamere.de>.
Thanks, hopefully I´ll know what you are talking about once I´ve read the
docs... :-)
Regads,
Michael
----- Original Message -----
From: "James Mitchell" <jm...@telocity.com>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Friday, September 06, 2002 8:45 AM
Subject: RE: [Redirect] Caching problem with redirect... (new attempt)
> > -----Original Message-----
> > From: Michael Delamere [mailto:home@michael-delamere.de]
> > Sent: Friday, September 06, 2002 2:29 AM
> >
> >
> > Hi,
> >
> > I hope you don´t mind me asking again, but I got no answer yesterday....
> >
> >
> > I´m programming an application with a shopping cart. Originally I used
a
> > normal forward. The downside of this though, was that when the
> > user pressed
> > the refresh button, the article incremented by one every time.
>
> You can eliminate this by utilizing token verification that is part of the
> framework.
> See the code in the struts-example or docs for exact usage and benefits.
>
> >
> > Michael
> >
> >
>
> HTH
>
> James Mitchell
> Software Engineer\Struts Evangelist
> Struts-Atlanta, the "Open Minded Developer Network"
> http://www.open-tools.org/struts-atlanta
>
>
>
> --
> 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: [Redirect] Caching problem with redirect... (new attempt)
Posted by James Mitchell <jm...@telocity.com>.
> -----Original Message-----
> From: Michael Delamere [mailto:home@michael-delamere.de]
> Sent: Friday, September 06, 2002 2:29 AM
>
>
> Hi,
>
> I hope you don´t mind me asking again, but I got no answer yesterday....
>
>
> I´m programming an application with a shopping cart. Originally I used a
> normal forward. The downside of this though, was that when the
> user pressed
> the refresh button, the article incremented by one every time.
You can eliminate this by utilizing token verification that is part of the
framework.
See the code in the struts-example or docs for exact usage and benefits.
>
> Michael
>
>
HTH
James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the "Open Minded Developer Network"
http://www.open-tools.org/struts-atlanta
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>