Spring 如何在异常上设置文本字符串flowScope值?

Spring 如何在异常上设置文本字符串flowScope值?,spring,spring-webflow,Spring,Spring Webflow,在我的SpringWebFlow应用程序中,我的动作状态转换如下: <transition on-exception="com.foo.BarException" to="barView"> <set name="flowScope.error" value="foo.bar" type="string" /> </transition> 我想将flowScope.error设置为文本字符串“foo.bar”,但Sprin

在我的SpringWebFlow应用程序中,我的
动作状态
转换如下:

    <transition on-exception="com.foo.BarException" to="barView">
        <set name="flowScope.error" value="foo.bar" type="string" />
    </transition>


我想将
flowScope.error
设置为文本字符串“foo.bar”,但Spring将其解释为对
foo
对象的bar属性的引用。如何强制Spring按字面理解字符串?

我发现:值需要用单引号括起来: