6

I recently inherited a very old code base (written in 2006) that uses the spring framework. Right now, the goal is to get it semi-functional, which I've almost done. However, there is some code I can't seem to fix that uses the class "FlowAction" from 'org.springframework.webflow.executor.struts.FlowAction'. This used to exist in the spring-webflow-1.0.6.jar, but no longer exists in 2.4.2.

Can anyone give me any hints for how to fix the following code using more recent spring framework code?

<action path="/secure/FRONT/enrollAction"
        name="webflowActionForm" scope="request"
        type="org.springframework.webflow.executor.struts.FlowAction" />

Please keep in mind that this is an attempt to get this very old code working so telling me it's impossible is fine, but please provide a good reason why (I'm no spring expert). I've googled and searched the spring code to no avail, but I'm hoping it's as simple as using a different library. Thanks for any input!

EDIT

Based on the first comment below, struts is no longer supported. I am offering a bounty for someone who knows how to update this code. I assume an alternative exists, or was offered by the spring framework, for code that was using the old libraries. If anyone knows what that is, I would greatly appreciate it. I just need help on how I would update the specific block of code above and am happy to provide any further information needed.

t0r0X
  • 4,212
  • 1
  • 38
  • 34
blh83
  • 495
  • 5
  • 17
  • There is no more struts support in web flow and as that class is part of that support it will not be possible. – M. Deinum Nov 26 '15 at 06:45
  • Thanks for the info, @M.Deinum. I guess I need to start looking for a replacement to the structs framework. – blh83 Nov 26 '15 at 16:41
  • There is no replacement and no support is available anymore. You would need to upgrade the struts version and use struts 2 and write the Struts web flow integration yourself. – M. Deinum Dec 07 '15 at 20:41
  • Your best bet would be to upgrade your struts actions to spring request mapped methods and remove the dependency on FlowAction. As a side note, struts 1 framework reached end of life status in April of 2013. It is probably better to refactor struts 1 out of the project anyway. – dreamwagon Dec 09 '15 at 21:43
  • Thanks again M.Deinum and thank you @jjhavokk. I wish I could say I was surprised by your answers, but code this old is likely to have these problems. I'm a bit over my head here so it may be time to hire a freelancer who can move this forward. Your comments have been helpful. Thanks! – blh83 Dec 10 '15 at 04:37
  • why don't you use spring mcv? you 'll have to modify also the jsp files. – Cosmin Constantinescu Dec 16 '15 at 20:55

1 Answers1

0
FlowHandlerMapping 
FlowHandler
FlowHandlerAdapter
FlowExecutor
FlowDefinition 
FlowRegistry

we can use the following classes for getting struts functionality to your code

Robert
  • 5,278
  • 43
  • 65
  • 115