It looks like the TokenInterceptor uses session.  Is there a session-less 
approach?

One idea I had was to create a hash of the request params and then store it in 
a hidden field and compare in the action class to determine if the request is a 
dup.  Maybe that's what the TokenInterceptor is doing..

Andy

> Date: Sun, 28 Dec 2008 13:05:20 +0100
> From: nil...@gmail.com
> To: user@struts.apache.org
> Subject: Re: Preventing duplicate form submissions
> 
> Take a look at the TokenInterceptor [1].
> 
> Nils-H
> 
> [1] - http://struts.apache.org/2.0.14/docs/token-interceptor.html
> 
> On Sun, Dec 28, 2008 at 10:41 AM, Andy <andrh...@hotmail.com> wrote:
> >
> > Hi,
> > I am looking for some best-practice advice for avoiding duplicate form 
> > submissions in Struts2.  I recently created a form that accepts user input, 
> > however after submitting the form the user may still refresh the page which 
> > resubmits the form.  This wasn't handled so elegantly in Struts1 so I am 
> > hoping Struts2 might provide something better?
> >
> > Thanks!
> > _________________________________________________________________
> > It's the same Hotmail(R). If by "same" you mean up to 70% faster.
> > http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_broad1_122008
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 

_________________________________________________________________
Send e-mail faster without improving your typing skills.
http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_speed_122008

Reply via email to