You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by li...@trifiro.net on 2003/10/08 09:16:49 UTC
Back to my token problem..
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: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: Back to my token problem..
Posted by Adam Hardy <ah...@cyberspaceroad.com>.
Sorry, what I just said is wrong - I would not show the results page - I
would leave the user on the form page. There they have their data which
they may have made changes to, which shouldn't be discarded.
On 10/08/2003 01:22 PM liste@trifiro.net wrote:
> 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 <ah...@cyberspaceroad.com>:
>
>
>>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 liste@trifiro.net 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: struts-user-unsubscribe@jakarta.apache.org
>>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>>
>>>
>>
>>--
>>struts 1.1 + tomcat 5.0.12 + java 1.4.2
>>Linux 2.4.20 RH9
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>
>>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
--
struts 1.1 + tomcat 5.0.12 + java 1.4.2
Linux 2.4.20 RH9
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: Back to my token problem..
Posted by Adam Hardy <ah...@cyberspaceroad.com>.
Your English is fine - but why are you telling the user to wait? Surely
you should tell them not to submit twice? What are they waiting for?
I would show the original results page again with the warning that doing
a double-submit is not allowed.
Adam
On 10/08/2003 01:22 PM liste@trifiro.net wrote:
> 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 <ah...@cyberspaceroad.com>:
>
>
>>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 liste@trifiro.net 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: struts-user-unsubscribe@jakarta.apache.org
>>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>>
>>>
>>
>>--
>>struts 1.1 + tomcat 5.0.12 + java 1.4.2
>>Linux 2.4.20 RH9
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>
>>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
--
struts 1.1 + tomcat 5.0.12 + java 1.4.2
Linux 2.4.20 RH9
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: Back to my token problem..
Posted by li...@trifiro.net.
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 <ah...@cyberspaceroad.com>:
> 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 liste@trifiro.net 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: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >
> >
>
> --
> struts 1.1 + tomcat 5.0.12 + java 1.4.2
> Linux 2.4.20 RH9
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: Back to my token problem..
Posted by Adam Hardy <ah...@cyberspaceroad.com>.
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 liste@trifiro.net 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: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
--
struts 1.1 + tomcat 5.0.12 + java 1.4.2
Linux 2.4.20 RH9
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org