Results 1 to 3 of 3

Thread: FlowAction and FlowLocator

  1. #1
    Join Date
    Jul 2006
    Posts
    4

    Default FlowAction and FlowLocator

    Hello,
    I would want to configure two FlowAction so that they read from two FlowLocator different, is possible to pass to the FlowAction the name of the Flowlocator to read? Thanks
    Sergio

  2. #2
    Join Date
    Jul 2006
    Posts
    4

    Default

    I have resolved my problem extending the FormAction class and making override of the OnInit method changing the name of the property read from flowLocator to flowLocatorPersonal and creating in webflow-context.xml a new bean with id flowLocatorPersonal.

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

    Default

    Another option would be to use Spring's "Delegating action proxy" support, where your Strut's actions themselves are managed by Spring and can benefit from dependency injection. We should likely enhance Birthdate to demonstrate this approach, as it is considered a best practice in a Spring environment when the number of actions is relatively small and they need customization.

    Keith
    Keith Donald
    Core Spring Development Team

Posting Permissions

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