You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by ri...@socgen.com on 2002/04/12 16:33:22 UTC

Token : URGENT : Dont understand please help


I have the following code

  System.out.println("*******Je sauve le token************");
            request.setAttribute("webbean", _webOrder);
            saveToken(request);
            System.out.println("Is Token Valid CancelDisplayAction **********  =
  " +  isTokenValid(request)); -->false
            _actionForward =mapping.findForward("success");
            return(_actionForward);

Just after saving the token i call istokenvalid and it returns false
Can anyone explain me !!!



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Token : URGENT : Dont understand please help

Posted by Jim Crossley <jc...@ifleet.com>.
The token won't be valid for the current request, but it will be for
the next one, which is the whole point of using a token anyway.

rizvan.katchera@socgen.com writes:

> I have the following code
> 
>   System.out.println("*******Je sauve le token************");
>             request.setAttribute("webbean", _webOrder);
>             saveToken(request);
>             System.out.println("Is Token Valid CancelDisplayAction **********  =
>   " +  isTokenValid(request)); -->false
>             _actionForward =mapping.findForward("success");
>             return(_actionForward);
> 
> Just after saving the token i call istokenvalid and it returns false
> Can anyone explain me !!!
> 
> 
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>

-- 
Jim Crossley
http://www.lads.com/~jim

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>