[
https://issues.apache.org/struts/browse/WW-2492?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43266#action_43266
]
Joaquin Diez commented on WW-2492:
----------------------------------
you are absolutely rigth.. implementing PreResulListener is solved...
> New Cookie added does not work when redirect-action used.
> ---------------------------------------------------------
>
> Key: WW-2492
> URL: https://issues.apache.org/struts/browse/WW-2492
> Project: Struts 2
> Issue Type: Bug
> Components: Core Actions, Core Interceptors
> Affects Versions: 2.0.11
> Environment: Tomcat 5.5 JDK 1.5
> Reporter: Joaquin Diez
>
> I am developing an Authentication Interceptor, that when the user is logged,
> creates an Cookie that saves same information...so after the action.invoke()
> I create the new Cookie and add it to the HttpServletResponse object.
> Cookie userCookie =
> unienceCookieBuilder.uniencePrincipal2cookie(uniencePrincipalAfter);
> response.addCookie(userCookie);
> the result of the Action is configured to make and redirect-action
> <action name="Login" method="execute" class="loginAction">
> <result name="input" type="tiles">unience.login</result>
> <result name="success" type="redirect-action">
> <param name="actionName">desktop</param>
> <param name="namespace">/desktop</param>
> <param
> name="request_locale">${locale_req}</param>
> </result>
> </action>
> The problem is that the Cookie added disappears, so never gets into the
> brower, and I can retrive those data I need..
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.