D]
Sent: Friday, August 27, 2004 11:10 AM
To: Struts Users Mailing List
Subject: Re: My IsValidToken() cannot trap duplicated submission.
Larry, what if an error occurs after form validation, but during
processing of the submit, which requires you to forward back to the
input page?
Erik
Zhang, Larry
.
-Original Message-
From: Erik Weber [mailto:[EMAIL PROTECTED]
Sent: Friday, August 27, 2004 11:10 AM
To: Struts Users Mailing List
Subject: Re: My IsValidToken() cannot trap duplicated submission.
Larry, what if an error occurs after form validation, but during
processing of the submit, which
Users Mailing List
Subject: Re: My IsValidToken() cannot trap duplicated submission.
Larry, what if an error occurs after form validation, but during
processing of the submit, which requires you to forward back to the
input page?
Erik
Zhang, Larry (L.) wrote:
>I think the resetToken should
t; -Original Message-
> From: PC Leung [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 27, 2004 11:08 AM
> To: Struts Users Mailing List
> Subject: Re: My IsValidToken() cannot trap duplicated submission.
>
> I have resetted token like this in the beginning.
>if (!isT
done processing the
> >submitted form.
> >
> >-Original Message-
> >From: Erik Weber [mailto:[EMAIL PROTECTED]
> >Sent: Friday, August 27, 2004 10:57 AM
> >To: Struts Users Mailing List
> >Subject: Re: My IsValidToken() cannot trap duplicated s
/ put your logic here to process your action form
return mapping.findForward("goodForwardPage");
}
-Original Message-
From: PC Leung [mailto:[EMAIL PROTECTED]
Sent: Friday, August 27, 2004 11:08 AM
To: Struts Users Mailing List
Subject: Re: My IsValidToken() cannot trap duplicated
aced as the
> > first place in your action that processes your
> > submitted form, instead of when you are done
> > processing the submitted form.
> > >
> > > -Original Message-
> > > From: Erik Weber
> [mailto:[EMAIL PROTECTED]
> > >
> >
> >-Original Message-
> >From: Erik Weber [mailto:[EMAIL PROTECTED]
> >Sent: Friday, August 27, 2004 10:57 AM
> >To: Struts Users Mailing List
> >Subject: Re: My IsValidToken() cannot trap
> duplicated submission.
> >
> >
> >Wh
of when you are done processing the submitted
form.
-Original Message-
From: Erik Weber [mailto:[EMAIL PROTECTED]
Sent: Friday, August 27, 2004 10:57 AM
To: Struts Users Mailing List
Subject: Re: My IsValidToken() cannot trap duplicated submission.
When you are done processing the submitted
---Original Message-
> > From: Erik Weber [mailto:[EMAIL PROTECTED]
> > Sent: Friday, August 27, 2004 10:57 AM
> > To: Struts Users Mailing List
> > Subject: Re: My IsValidToken() cannot trap
> duplicated submission.
> >
> >
> > When you are done p
ocesses your submitted form, instead of when you are done processing the submitted
> form.
>
> -Original Message-
> From: Erik Weber [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 27, 2004 10:57 AM
> To: Struts Users Mailing List
> Subject: Re: My IsValidToken()
Mailing List
Subject: Re: My IsValidToken() cannot trap duplicated submission.
When you are done processing the submitted form, invoke "resetToken".
Erik
PC Leung wrote:
>After clicking submit button and then go back previous page,
>data is still there, click the submit butt
Sounds like you are using Mozilla or Firebird. Those browsers will actually
send a new request when you hit the back button, which (depending on how
your action works) will generate a new token.
With Internet Exploder, the page is pulled from cache, which Struts will
(again, depending on how your
When you are done processing the submitted form, invoke "resetToken".
Erik
PC Leung wrote:
After clicking submit button and then go back previous page,
data is still there, click the submit button again. record will be
saved once more time. The IsValidToken cannot trap the duplicated
submission.
14 matches
Mail list logo