You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Rajeev430 <ra...@gmail.com> on 2011/05/12 22:42:21 UTC
Struts2 - duplicate submit problem
Hi,
How I can stop duplicate submit in Struts2? Is there any working example
code for the reference. I am looking for any pattern (Token Interceptor,
Token Session Interceptor, Execute and Wait Interceptor) to solve this
problem.
Thanks,
Rajeev
--
View this message in context: http://struts.1045723.n5.nabble.com/Struts2-duplicate-submit-problem-tp4391457p4391457.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Struts2 - duplicate submit problem
Posted by jagdeep singh <ja...@gmail.com>.
Hi,
you have to use <s:token/> tag in your form. <s:token/> tag is used to solve
the re-submission use a hidden token in the form. The token is autogenerated
and unique from time to time.
And do following entries in you struts.xml file:
<interceptor-ref name="token" />
<result name="invalid.token">/duplicatformsubmiterror.jsp</result>
On Fri, May 13, 2011 at 4:35 PM, Stefan Magnus Landrø <
stefan.landro@gmail.com> wrote:
> Have you had a look at the csrf-protection? Not sure if it is request
> or session oriented.
>
> http://nickcoblentz.blogspot.com/2008/11/csrf-prevention-in-struts-2.html
>
> On Thu, May 12, 2011 at 10:42 PM, Rajeev430 <ra...@gmail.com>
> wrote:
> > Hi,
> >
> > How I can stop duplicate submit in Struts2? Is there any working example
> > code for the reference. I am looking for any pattern (Token Interceptor,
> > Token Session Interceptor, Execute and Wait Interceptor) to solve this
> > problem.
> >
> > Thanks,
> > Rajeev
> >
> >
> > --
> > View this message in context:
> http://struts.1045723.n5.nabble.com/Struts2-duplicate-submit-problem-tp4391457p4391457.html
> > Sent from the Struts - User mailing list archive at Nabble.com.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
>
>
>
> --
> BEKK Open
> http://open.bekk.no
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
--
Regards,
Jagdeep
Re: Struts2 - duplicate submit problem
Posted by Stefan Magnus Landrø <st...@gmail.com>.
Have you had a look at the csrf-protection? Not sure if it is request
or session oriented.
http://nickcoblentz.blogspot.com/2008/11/csrf-prevention-in-struts-2.html
On Thu, May 12, 2011 at 10:42 PM, Rajeev430 <ra...@gmail.com> wrote:
> Hi,
>
> How I can stop duplicate submit in Struts2? Is there any working example
> code for the reference. I am looking for any pattern (Token Interceptor,
> Token Session Interceptor, Execute and Wait Interceptor) to solve this
> problem.
>
> Thanks,
> Rajeev
>
>
> --
> View this message in context: http://struts.1045723.n5.nabble.com/Struts2-duplicate-submit-problem-tp4391457p4391457.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
--
BEKK Open
http://open.bekk.no
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Struts2 - duplicate submit problem
Posted by Mohamed SIDI <mh...@gmail.com>.
the duplicate submit may be come from your code, can you put out some code
to help us to solve your problem
2011/5/12 Rajeev430 <ra...@gmail.com>
> Hi,
>
> How I can stop duplicate submit in Struts2? Is there any working example
> code for the reference. I am looking for any pattern (Token Interceptor,
> Token Session Interceptor, Execute and Wait Interceptor) to solve this
> problem.
>
> Thanks,
> Rajeev
>
>
> --
> View this message in context:
> http://struts.1045723.n5.nabble.com/Struts2-duplicate-submit-problem-tp4391457p4391457.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
--
Cordialement
Mohamed