Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

S2 - Interceptors & HTTP Response

Jon Wilmoth

2006-12-18


Are there any rules the interceptors should be aware of when dealing with the HTTP response? I ask because I'm trying to save a cookie to the user's browser via an interceptor and although I'm adding the cookie (with a MaxAge attribute value = one year) to the response via ServletActionContext.getResponse().response.addCookie(userNameCookie) the cookie is never getting sent to the browser.

Thanks in advance,
Jon

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.