• Type: Improvement Improvement
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.1.6
    • Fix Version/s: 3.0
    • Component/s: Core Interceptors
    • Labels:


      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 ... what can i do for you to see the code and if it's something you like, submit it... thanks..

        Issue Links


          Lukasz Lenart made changes -
          Fix Version/s 3.x [ 12319158 ]
          Priority Major [ 3 ] Minor [ 4 ]
          Maurizio Cucchiara made changes -
          Link This issue relates to WW-3497 [ WW-3497 ]
          Maurizio Cucchiara made changes -
          Status In Progress [ 3 ] Open [ 1 ]
          Maurizio Cucchiara made changes -
          Assignee carlo scarioni [ carlo81 ] Maurizio Cucchiara [ maurizio.cucchiara ]
          Jeff Turner made changes -
          Project Import Mon Feb 01 01:17:42 UTC 2010 [ 1264987062082 ]
          carlo scarioni made changes -
          Attachment struts-cookie-interceptor.tar.gz [ 14090 ]
          carlo scarioni made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          carlo scarioni made changes -
          Field Original Value New Value
          Assignee carlo scarioni [ carlo81 ]
          carlo scarioni created issue -


            • Assignee:
              Maurizio Cucchiara
              carlo scarioni
            • Votes:
              0 Vote for this issue
              4 Start watching this issue


              • Created: