Hi Adam and thank you for your answer,

Points (1) -> (5) are what i want to do indeed... Then i don't know how to get 
back to the normal course of the application. When the isTokenValid() returns 
false, i go back to the page with the form and an error message to inform the 
user to wait... Then nothing happens. The application remains on this page 
whereas the code of my action class is finished.

Maybe i'm not very clear, my english is not excellent :p !

Thank you for your help, Fred

Selon Adam Hardy <[EMAIL PROTECTED]>:

> Hi Frederic,
> I have to admit I'm confused about what you want to achieve. This is 
> what I think, but correct me if I'm wrong:
> 
> (1) the user submits a form with a struts token in it
> 
> (2) the user hits the back button to go to the form again
> 
> (3) the user submits the form again
> 
> (4) struts isTokenValid() returns false
> 
> (5) you direct the user to an error page
> 
> (6) you want to have a link from the error page to the page where the 
> user should be if step (2) & (3) had never happened?
> 
> I think you are being too nice to the user. Send the user back to square 
> one! They deserve it for being sneaky. Don't tell me, it's part of the 
> spec! Is it?
> 
> Adam
> 
> On 10/08/2003 09:16 AM [EMAIL PROTECTED] wrote:
> > Hi everyone, 
> > 
> > I'm back with my token problem, i really need your help. Maybe, i'm wrong
> in 
> > the way i'm applying the mechamism.
> > 
> > In all the tutorials or examples i've seen, the action class was setting up
> a 
> > page with an error message if a submission problem was detected. That's
> fine 
> > but.. My problem is to bring back the user from the error page to the next
> page 
> > when the action class has finished its execution. 
> > 
> > In my code, nothing happens once the user is on the error page and the
> action 
> > code finished :( ! The return mapping.forward seems unefficient.
> > 
> > I hope somewone will help me.
> > 
> > Frederic.
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> -- 
> struts 1.1 + tomcat 5.0.12 + java 1.4.2
> Linux 2.4.20 RH9
> 
> 
> ---------------------------------------------------------------------
> 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