Home > Guides > Core Developers Guide > Interceptors > CookieProvider Interceptor |

Apache Struts 2 Documentation
CookieProvider Interceptor
Edit Page Browse Space Add Page Add News

Allows actions to send cookies to client, action must implement CookieProvider You must reference this interceptor in your default stack or in action's stack, see example below.

Parameters

none

Extending the Interceptor

- addCookiesToResponse - this method applies cookie created by action to response

Examples