(Using SWF 2.0.7)
parent: /WEB-INF/flows/myParent.xml
bean: /WEB-INF/flows/myBean.xml
child: /WEB-INF/flows/child/myChild.xml
The parent includes:
The child includes "myParent" as a parent. When trying to render the child page, I get:Code:<bean-import resource="myBean.xml"/>
The bean-import tag specifies for the resource attribute:Code:Caused by: java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/flows/child/myBean.xml]
The Spring Web Flow documentation statesThe relative resource path to the bean definition file to import. Imported bean definitions are then
referenceable by this flow. The resource path is relative to this document.
For example:
<bean-import resource="orderitem-flow-beans.xml"/>
... would look for 'orderitem-flow-beans.xml' in the same directory as this document.
Is it possible to specify an absolute path for the bean-import in the parent flow?Paths to external resources in the parent flow should be absolute. Relative paths will break when the two flows are merged unless the parent and child flow are in the same directory. Once merged, all relative paths in the parent flow will become relative to the child flow.
In this case, the parent flow is abstract, so I have been able to work-around it by including the bean-imports only in the child. Is this the only way to handle this situation?


Reply With Quote