Results 1 to 6 of 6

Thread: struts adapter & HttpSessionContinuationFlowExecutionSto

  1. #1
    Join Date
    Nov 2004
    Location
    Düsseldorf, Germany
    Posts
    62

    Default struts adapter & HttpSessionContinuationFlowExecutionSto

    Hey guys,
    am I missing something or does the struts adapter lack the possibility to use continuationsupport. I would expect it at as property of the FlowAction in the struts-action. But going through the code there is only a hook for the flowId.

    Any other way to use continuations? Or do I have to subclass FlowAction?

  2. #2
    Join Date
    Aug 2004
    Location
    Melbourne, FL
    Posts
    2,794

    Default

    Well, ideally, we need to add this. Maybe you could help us out here :-)

    Just like flowId can be specified in the FlowActionMapping, we should allow a text encoding of the execution storage strategy: e.g "session", "sessionContinuation", or
    "clientContinuation". We can then key off those in the createFlowExecutionManager factory method of FlowAction to set the right strategy.
    Keith Donald
    Core Spring Development Team

  3. #3
    Join Date
    Aug 2004
    Location
    Melbourne, FL
    Posts
    2,794

    Default

    Im on a roll today. Just added this.

    See the "storage" property of FlowActionMapping.
    Keith Donald
    Core Spring Development Team

  4. #4
    Join Date
    Nov 2004
    Location
    Düsseldorf, Germany
    Posts
    62

    Default

    Thanks keith. I had already setup up everything to have a look into it but you were too fast for me.

    I'll call it luck ;-)

  5. #5
    Join Date
    Nov 2004
    Location
    Düsseldorf, Germany
    Posts
    62

    Default

    BTW, there is another one in the row of missing struts adapter features: FlowExecutionListeners

    I would implement it but I'm a little bit scared about the possibility of having multiple listeners declared in the struts-config. How does struts handle this?
    Second issue on this is the origin of the listeners. It would be quite handy to have them looked up in the application context, or?
    I would simply use the applicationcontext retrieved in the templateAction for this purpose but looking through the code I see a lot of helpers and utility methods so I am not sure if there is another (prefered) way to do so.

    Greetings,
    Markus

  6. #6
    Join Date
    Nov 2004
    Location
    Düsseldorf, Germany
    Posts
    62

    Default

    I added a simple listener support which only can register one listener per flow. See SPR-902 in jiira.

Similar Threads

  1. Spring MVC Web Framework versus Struts
    By biguniverse in forum Web Flow
    Replies: 27
    Last Post: Aug 29th, 2012, 03:57 AM
  2. Replies: 4
    Last Post: Aug 1st, 2005, 03:45 PM
  3. Replies: 2
    Last Post: May 24th, 2005, 11:22 AM
  4. Struts adapter
    By jocsch in forum Web Flow
    Replies: 1
    Last Post: Apr 17th, 2005, 11:35 AM
  5. Replies: 10
    Last Post: Nov 2nd, 2004, 09:38 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •