Re: My IsValidToken() cannot trap duplicated submission.

2004-08-27 Thread Erik Weber
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

Re: My IsValidToken() cannot trap duplicated submission.

2004-08-27 Thread Erik Weber
. -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

RE: My IsValidToken() cannot trap duplicated submission.

2004-08-27 Thread Zhang, Larry \(L.\)
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

Re: My IsValidToken() cannot trap duplicated submission.

2004-08-27 Thread PC Leung
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

Re: My IsValidToken() cannot trap duplicated submission.

2004-08-27 Thread PC Leung
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

RE: My IsValidToken() cannot trap duplicated submission.

2004-08-27 Thread Zhang, Larry \(L.\)
/ 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

Re: My IsValidToken() cannot trap duplicated submission.

2004-08-27 Thread struts lover
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] > > >

Re: My IsValidToken() cannot trap duplicated submission.

2004-08-27 Thread struts lover
> > > >-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

Re: My IsValidToken() cannot trap duplicated submission.

2004-08-27 Thread Erik Weber
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

Re: My IsValidToken() cannot trap duplicated submission.

2004-08-27 Thread struts lover
---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

Re: My IsValidToken() cannot trap duplicated submission.

2004-08-27 Thread PC Leung
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()

RE: My IsValidToken() cannot trap duplicated submission.

2004-08-27 Thread Zhang, Larry \(L.\)
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

Re: My IsValidToken() cannot trap duplicated submission.

2004-08-27 Thread James Mitchell
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

Re: My IsValidToken() cannot trap duplicated submission.

2004-08-27 Thread Erik Weber
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.