In my Spring web flow app, one of my action-state
transitions looks like this:
<transition on-exception="com.foo.BarException" to="barView">
<set name="flowScope.error" value="foo.bar" type="string" />
</transition>
I would like to set flowScope.error
to the literal String "foo.bar", but Spring interprets this as a reference to the foo
object's bar attribute. How can I force Spring to take the String literally?
I figured it out: the value needs needs to be enclosed in single quotes:
<set name="flowScope.error" value="'foo.bar'" type="string" />
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With