diff --git a/spring-webflow/src/main/java/org/springframework/webflow/engine/builder/xml/XmlFlowBuilder.java b/spring-webflow/src/main/java/org/springframework/webflow/engine/builder/xml/XmlFlowBuilder.java
index b4fe433d..d988bfc6 100644
--- a/spring-webflow/src/main/java/org/springframework/webflow/engine/builder/xml/XmlFlowBuilder.java
+++ b/spring-webflow/src/main/java/org/springframework/webflow/engine/builder/xml/XmlFlowBuilder.java
@@ -155,6 +155,8 @@ public class XmlFlowBuilder extends AbstractFlowBuilder implements ResourceHolde
private static final String EVALUATION_RESULT_ELEMENT = "evaluation-result";
+ private static final String RESULT_ATTRIBUTE = "result";
+
private static final String DEFAULT_VALUE = "default";
private static final String VIEW_STATE_ELEMENT = "view-state";
@@ -835,6 +837,11 @@ public class XmlFlowBuilder extends AbstractFlowBuilder implements ResourceHolde
Element resultElement = DomUtils.getChildElementByTagName(element, EVALUATION_RESULT_ELEMENT);
if (resultElement != null) {
return parseActionResultExposer(resultElement);
+ } else if (element.hasAttribute(RESULT_ATTRIBUTE)) {
+ String resultExpressionString = element.getAttribute(RESULT_ATTRIBUTE);
+ Expression resultExpression = getExpressionParser().parseExpression(resultExpressionString,
+ new ParserContextImpl().eval(RequestContext.class));
+ return new ActionResultExposer(resultExpression, null, parseResultType(element));
} else {
return null;
}
diff --git a/spring-webflow/src/main/java/org/springframework/webflow/engine/builder/xml/spring-webflow-2.0.xsd b/spring-webflow/src/main/java/org/springframework/webflow/engine/builder/xml/spring-webflow-2.0.xsd
index cae581b3..8ea7c86d 100644
--- a/spring-webflow/src/main/java/org/springframework/webflow/engine/builder/xml/spring-webflow-2.0.xsd
+++ b/spring-webflow/src/main/java/org/springframework/webflow/engine/builder/xml/spring-webflow-2.0.xsd
@@ -1065,7 +1065,8 @@ An attribute describing this bean action.
@@ -1079,6 +1080,25 @@ The expression to evaluate when this action is invoked.
]]>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -1109,7 +1129,15 @@ An action with a name is often referred to as a "named action".
-
+
+
+
+ and will
+be removed in a future release.
+]]>
+
+