[ 
https://issues.apache.org/jira/browse/WW-1691?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13163450#comment-13163450
 ] 

Lukasz Lenart commented on WW-1691:
-----------------------------------

Copy from OpenSymphony JIRA:

I've modified the TokenSessionStoreInterceptor to work from a text link. This 
is also helpful because now you do not need to include a token field in your 
form or your link. Just attach this interceptor to your action, and it takes 
care of itself.

It works by checking the request parameters for a token. If no token exists, it 
adds a token to the request. It then checks to see if there is a token in the 
session. If no token is in the session, then this is a new request. If a token 
exists in the session, then this request is a duplicate.

The two classes I modified were TokenSessionStoreInterceptor and TokenHelper. 
I've just tested this in a development environment, so I would love to hear any 
comments or suggestions.
                
> TokenActionInterceptor - token functionality from a text link
> -------------------------------------------------------------
>
>                 Key: WW-1691
>                 URL: https://issues.apache.org/jira/browse/WW-1691
>             Project: Struts 2
>          Issue Type: Improvement
>    Affects Versions: 2.0.4
>            Reporter: tm_jee
>             Fix For: 2.2.x
>
>         Attachments: TokenActionInterceptor.java, TokenHelper.java
>
>
> might want to look into this [1]
> [1] - http://jira.opensymphony.com/browse/WW-1421

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to