Class CookieProviderInterceptor

java.lang.Object
com.opensymphony.xwork2.interceptor.AbstractInterceptor
org.apache.struts2.interceptor.CookieProviderInterceptor
All Implemented Interfaces:
ConditionalInterceptor, Interceptor, PreResultListener, Serializable

public class CookieProviderInterceptor extends AbstractInterceptor implements PreResultListener
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. none
  • addCookiesToResponse - this method applies cookie created by action to response
 

 <action ... >
   <interceptor-ref name="defaultStack"/>
   <interceptor-ref name="cookieProvider"/>
   ...
 </action>

 
 
See Also: