sorry, I think we are going in circles.....

This is a multipage form (3 to be exact but with only one actionform), BUT
my whole original issue was:

When they hit the back button the original form content IS either absent or
different to their last entries (I do a reset in the actionform0.

Am I doing something wrong or is this a fact of life with the back button.

ron

-----Original Message-----
From: David Graham [mailto:[EMAIL PROTECTED]
Sent: Monday, March 10, 2003 3:49 PM
To: [EMAIL PROTECTED]
Subject: RE: The Back button on on multi-page forms ??????


If this is a multi-page form, then don't use tokens and let them use the
back button to correct the data.  If it's a single page form, use tokens and
provide an update form where they can correct any mistakes they made on the
add form.  The difference is that the multi-page form will be accumulating
data in the session rather than immediately inserting it in the database.

David



>From: "Ron Day" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>Subject: RE: The Back button on on multi-page forms ??????
>Date: Mon, 10 Mar 2003 15:36:25 -0600
>
>I completely understand your example and how validation works.....
>
>In my example, the error is not a validation error, it is a user error (as
>my example said a wrong phone number)
>Say he/she typed in a home phone number and wants to go back and change it
>to his work phone.
>The user instinctively will hit the back button.
>That's where my problem starts..........
>
>ron
>
>-----Original Message-----
>From: David Graham [mailto:[EMAIL PROTECTED]
>Sent: Monday, March 10, 2003 3:27 PM
>To: [EMAIL PROTECTED]
>Subject: RE: The Back button on on multi-page forms ??????
>
>
>1. User submits form with invalid data.
>2. Form bean's validate() method returns ActionErrors
>3. Struts *forwards* the request back to the input page with errors
>4. Input page displays errors.
>5. User submits form again, if invalid goto step 1.
>
>There is no valid reason for the user to use the back button to correct
>data.  Tokens prevent the user from submitting the same form twice.
>
>David
>
>
>
> >From: "Ron Day" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >Subject: RE: The Back button on on multi-page forms ??????
> >Date: Mon, 10 Mar 2003 15:07:40 -0600
> >
> >So, how can they correct a user error (i.e wrong phone number) on the
> >previous page, and resubmit the form?
> >
> >R
> >
> >-----Original Message-----
> >From: David Graham [mailto:[EMAIL PROTECTED]
> >Sent: Monday, March 10, 2003 3:01 PM
> >To: [EMAIL PROTECTED]
> >Subject: RE: The Back button on on multi-page forms ??????
> >
> >
> >Pressing the back button does not contact the server and thus cannot post
> >any information.  When the user submits the form again, their token will
>be
> >invalid and your action will prevent a duplicate post.
> >
> >David
> >
> >
> >
> > >From: "Ron Day" <[EMAIL PROTECTED]>
> > >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > >Subject: RE: The Back button on on multi-page forms ??????
> > >Date: Mon, 10 Mar 2003 14:40:43 -0600
> > >
> > >Maybe I'm dumb, but it is not apparent to me how the "token" is used to
> > >make
> > >the back button post the correct form information.
> > >
> > >R
> > >
> > >-----Original Message-----
> > >From: David Graham [mailto:[EMAIL PROTECTED]
> > >Sent: Monday, March 10, 2003 12:48 PM
> > >To: [EMAIL PROTECTED]
> > >Subject: RE: The Back button on on multi-page forms ??????
> > >
> > >
> > >You'll notice that I also pointed you to the struts-example app that
> >shows
> > >you how to use the methods you found in the javadoc.
> > >
> > >David
> > >
> > >
> > >
> > > >From: "Ron Day" <[EMAIL PROTECTED]>
> > > >Reply-To: "Struts Users Mailing List"
><[EMAIL PROTECTED]>
> > > >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > > >Subject: RE: The Back button on on multi-page forms ??????
> > > >Date: Mon, 10 Mar 2003 12:39:51 -0600
> > > >
> > > >Khalid
> > > >
> > > >I will share anything I find.
> > > >
> > > >Have not got too much help so far.....
> > > >
> > > >I am digging into the "tokens"
> > > >
> > > >Javadoc does not say much !!
> > > >
> > > >Ron
> > > >
> > > >-----Original Message-----
> > > >From: Khalid K. [mailto:[EMAIL PROTECTED]
> > > >Sent: Monday, March 10, 2003 12:25 PM
> > > >To: [EMAIL PROTECTED]
> > > >Subject: Re: The Back button on on multi-page forms ??????
> > > >
> > > >
> > > >Hello Ron,
> > > >
> > > >We have an application that has the same problem. if you got the
>"back"
> > > >button issue resloved, could you please share the code sample ??
> > > >I checked the java doc, and it looks like "isValidToken" is in 1.1,
>and
> > >not
> > > >in 1.0.2.
> > > >
> > > >Thanks!
> > > >
> > > >Khalid
> > > >
> > > >----- Original Message -----
> > > >From: "Ron Day" <[EMAIL PROTECTED]>
> > > >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > > >Sent: Monday, March 10, 2003 10:14 AM
> > > >Subject: RE: The Back button on on multi-page forms
> > > >
> > > >
> > > > > I get the picture....thanks anyway.
> > > > >
> > > > > -----Original Message-----
> > > > > From: David Graham [mailto:[EMAIL PROTECTED]
> > > > > Sent: Monday, March 10, 2003 12:04 PM
> > > > > To: [EMAIL PROTECTED]
> > > > > Subject: RE: The Back button on on multi-page forms
> > > > >
> > > > >
> > > > > See the Action class' javadoc for details.
> > > > >
> > > > > David
> > > > >
> > > > >
> > > > >
> > > > > >From: "Ron Day" <[EMAIL PROTECTED]>
> > > > > >Reply-To: "Struts Users Mailing List"
> > ><[EMAIL PROTECTED]>
> > > > > >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > > > > >Subject: RE: The Back button on on multi-page forms
> > > > > >Date: Mon, 10 Mar 2003 11:54:32 -0600
> > > > > >
> > > > > >Thanks for the tip on tokens....
> > > > > >
> > > > > >I'm not familiar (yet) with tokens.
> > > > > >Are these new in 1.1 or have they always been there..... I have
>to
> > >use
> > > > > >Struts 1.0.
> > > > > >
> > > > > >Ron
> > > > > >
> > > > > >-----Original Message-----
> > > > > >From: David Graham [mailto:[EMAIL PROTECTED]
> > > > > >Sent: Monday, March 10, 2003 10:24 AM
> > > > > >To: [EMAIL PROTECTED]
> > > > > >Subject: Re: The Back button on on multi-page forms
> > > > > >
> > > > > >
> > > > > >See the Action class' javadoc for the token methods and the
> > > >struts-example
> > > > > >app for how to use them.
> > > > > >
> > > > > >David
> > > > > >
> > > > > >
> > > > > >
> > > > > > >From: "Ron Day" <[EMAIL PROTECTED]>
> > > > > > >Reply-To: "Struts Users Mailing List"
> > > ><[EMAIL PROTECTED]>
> > > > > > >To: "Struts Users Mailing List"
><[EMAIL PROTECTED]>
> > > > > > >Subject: The Back button on  on multi-page forms
> > > > > > >Date: Mon, 10 Mar 2003 10:05:16 -0600
> > > > > > >
> > > > > > >Anyone have any ideas or best practises on how to handle the
>use
> > > > > >(mis-use)
> > > > > > >of the browser back button on multi-page forms.
> > > > > > >
> > > > > > >My forms work fine and validate Ok, but if the back button is
> >used
> > > >the
> > > > > > >forms
> > > > > > >are not re-populated properly. In particular anything that was
>in
> > >the
> > > > > > >reset,
> > > > > > >seems to be used when the form appears after the back button is
> > >used.
> > > > > > >
> > > > > > >ron
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > >---------------------------------------------------------------------
> > > > > > >To unsubscribe, e-mail:
> >[EMAIL PROTECTED]
> > > > > > >For additional commands, e-mail:
> > >[EMAIL PROTECTED]
> > > > > >
> > > > > >
> > > > > >_________________________________________________________________
> > > > > >Add photos to your messages with MSN 8. Get 2 months FREE*.
> > > > > >http://join.msn.com/?page=features/featuredemail
> > > > > >
> > > > > >
> > > > >
> > >---------------------------------------------------------------------
> > > > > >To unsubscribe, e-mail:
>[EMAIL PROTECTED]
> > > > > >For additional commands, e-mail:
> >[EMAIL PROTECTED]
> > > > > >
> > > > > >
> > > > >
> > >---------------------------------------------------------------------
> > > > > >To unsubscribe, e-mail:
>[EMAIL PROTECTED]
> > > > > >For additional commands, e-mail:
> >[EMAIL PROTECTED]
> > > > >
> > > > >
> > > > > _________________________________________________________________
> > > > > MSN 8 with e-mail virus protection service: 2 months FREE*
> > > > > http://join.msn.com/?page=features/virus
> > > > >
> > > > >
> > > > >
> >---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > > For additional commands, e-mail:
>[EMAIL PROTECTED]
> > > > >
> > > > >
> > > > >
> >---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > > For additional commands, e-mail:
>[EMAIL PROTECTED]
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > >---------------------------------------------------------------------
> > > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > >For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> > >_________________________________________________________________
> > >MSN 8 with e-mail virus protection service: 2 months FREE*
> > >http://join.msn.com/?page=features/virus
> > >
> > >
> > >---------------------------------------------------------------------
> > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> > >---------------------------------------------------------------------
> > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >_________________________________________________________________
> >Protect your PC - get McAfee.com VirusScan Online
> >http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>_________________________________________________________________
>Help STOP SPAM with the new MSN 8 and get 2 months FREE*
>http://join.msn.com/?page=features/junkmail
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]


_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to