[ 
https://issues.apache.org/jira/browse/WW-4037?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13665388#comment-13665388
 ] 

Hudson commented on WW-4037:
----------------------------

Integrated in Struts2-JDK6 #711 (See 
[https://builds.apache.org/job/Struts2-JDK6/711/])
    WW-4037 Adds functionality to create Cookies in action and apply them to 
response (Revision 1485719)

     Result = SUCCESS
lukaszlenart : 
Files : 
* 
/struts/struts2/trunk/core/src/main/java/org/apache/struts2/interceptor/CookieProvider.java
* 
/struts/struts2/trunk/core/src/main/java/org/apache/struts2/interceptor/CookieProviderInterceptor.java
* /struts/struts2/trunk/core/src/main/resources/struts-default.xml
* 
/struts/struts2/trunk/core/src/test/java/org/apache/struts2/interceptor/CookieProviderInterceptorTest.java

                
> Provide functionality to create cookies from an Action
> ------------------------------------------------------
>
>                 Key: WW-4037
>                 URL: https://issues.apache.org/jira/browse/WW-4037
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Core Interceptors
>    Affects Versions: 2.3.14
>            Reporter: Jose L Martinez-Avial
>            Assignee: Lukasz Lenart
>              Labels: cookie, interceptors
>             Fix For: 2.3.15
>
>         Attachments: CookieProviderInterceptor.java, CookieProvider.java
>
>   Original Estimate: 72h
>  Remaining Estimate: 72h
>
> As of today Struts provides some functionality to receive cookies in an 
> Action, but there is no way to create cookies. I solved the issue by creating 
> a custom CookieProviderInterceptor and CookieProvider interface that provide 
> a standard way to generate cookies. The code I provide works and has been in 
> production for months, but it is not Struts-ready, in the sense that it needs 
> refactoring to remove the dependency from javax.servlet in the request; It is 
> though a starting point to adapt it to Struts.
> As a suggestion maybe it is possible to merge this funcionality in 
> CookieInterceptor, since receiving and creating cookies are usually related.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to