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

carlo scarioni commented on WW-3232:
------------------------------------

To be honest, i didn't use all the properties because i didn't need them for 
the problem at hand.
The @Cookies annotation for mapping multiple cookies to a Map property seems 
like a nice addition. 
To default the cookie name to the property name is a great convention..

I can totally add these functionalities. 
So, do you think that the struts2 team wold be interested in this Inteceptor 
for the project. How can i figure it out.. I have long time been using OSS, and 
i'd really  love to commit something to the community in return, even as little 
as this... :).. to see a couple of lines of my code in a project like this 
would be  awesome for me :)

> New Cookie Interceptor
> ----------------------
>
>                 Key: WW-3232
>                 URL: https://issues.apache.org/struts/browse/WW-3232
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Core Interceptors
>    Affects Versions: 2.1.6
>            Reporter: carlo scarioni
>            Assignee: carlo scarioni
>         Attachments: struts-cookie-interceptor.tar.gz
>
>
> Hello, I've developed for my current project a simple Cookie Interceptor. 
> It's like the one in the distribution but different, :)
> It works by annotating in the action with a 
> @Cookie(name="cookieName",timeToLive=100,path="xxx") a String property.
> The Interceptor (Which is also a PreResultListener) Scans the action. if it 
> finds a @Cookie annotation it injects the cookie value into the action's 
> property. When the action is executed, the interceptor's beforeResultMethod 
> scans the action again and the values from properties annotated with @Cookie 
> are saved in the response's cookies.
> This is the basic idea, than using just the getters and setters in the action 
> you can retrieve and set a cookie..
> I would love to share this simple interceptor, i would love to see a little 
> of my code added to your project :D ... what can i do for you to see the code 
> and if it's something you like, submit it... thanks..

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to