In struts.xml
, I have included tokenSession
interceptor to my interceptor-stack to validate token for each request. Unfortunately, the same isn't working well for AJAX requests. I got invalid.token
response when it executes actionInvocation.invoke()
.
Hence, I would like to stop executing tokenSession interceptor for AJAX requests (alone). I have a custom interceptor (logging) which get invoked prior to tokenSession
interceptor. Is it possible to delete tokenSession
interceptor from stack in logging interceptor based on request type (if it is an AJAX request)?