> HI All,
> 
> We have two pages and both of them have <s:token> tag and both of them 
use
> token interceptor.
> 
> After I submit one form I need to display another form in another page.
> I am using "redirectAction" to redirect
> 
> Before redirecting in the first action class I am setting token value 
into
> session.
> But when it tries to redirect to the 2nd action.. the  error is getting
> displayed.
> "Could not find token name in params."
> 
> How to pass the token in the parameter..How to solve this problem...any
> help would be precious.
> 
> Thanks
> Arpan


token interceptor is not intended to be used for redirects. It is intended 
to be used with forms. On GET request, when form is shown to user, the 
token is generated and on POST request, when user saves, the token is 
checked.


If you really want to use it with redirects you have to add 2 URL 
parameters:

struts.token.name=<custom name>
<custom name>=<token>


Regards,
Christoph

This Email was scanned by Sophos Anti Virus

Reply via email to