From 36670d5f0cb1c2f7ed5876068233ccbe2c0ce2d4 Mon Sep 17 00:00:00 2001 From: Keith Donald Date: Wed, 23 Apr 2008 19:42:19 +0000 Subject: [PATCH] redirect prefixes --- .../model/builder/xml/spring-webflow-2.0.xsd | 45 ++++++++++++++----- 1 file changed, 34 insertions(+), 11 deletions(-) diff --git a/spring-webflow/src/main/java/org/springframework/webflow/engine/model/builder/xml/spring-webflow-2.0.xsd b/spring-webflow/src/main/java/org/springframework/webflow/engine/model/builder/xml/spring-webflow-2.0.xsd index 806d31aa..81ee3ba1 100644 --- a/spring-webflow/src/main/java/org/springframework/webflow/engine/model/builder/xml/spring-webflow-2.0.xsd +++ b/spring-webflow/src/main/java/org/springframework/webflow/engine/model/builder/xml/spring-webflow-2.0.xsd @@ -416,15 +416,28 @@ Can also be an evaluatable expression:
 	${flowScope.myViewExpression}
 
-Use the externalRedirect: prefix to redirect to an external URL, typically to interface with an external system. -External redirect query parameters may be specified using ${expressions} that evaluate against the request context: +The externalRedirect: prefix may be used to redirect to an external location, typically to interface with an external system or controller. +External redirect query parameters may be specified using ${expressions} that evaluate against the request context. +The supported formats for an encoded externalRedirect expression are:
-	externalRedirect:/http://someOtherSystem?orderId=${flowScope.order.id}&callbackUrl=${flowExecutionUrl}
-
-Use the flowRedirect: prefix to redirect to another flow: + externalRedirect: + externalRedirect:contextRelative: + externalRedirect:serverRelative: + externalRedirect:url: + +For example: +
+	externalRedirect:/hotels/index
+	externalRedirect:url:http://someOtherSystem?orderId=${order.id}&callbackUrl=${flowExecutionUrl}
+
+The flowRedirect: prefix may be used to redirect to another flow:
 	flowRedirect:myOtherFlow?someData=${flowScope.data}
 
+For exotic usages, you may plug in a custom ViewFactory bean you define: +
+	${myCustomViewFactory}
+
When this attribute is not specified, the view to render will be determined by convention. The default convention is to treat the id of this view state as the view identifier. ]]> @@ -882,11 +895,21 @@ It can also be an evaluatable expression:
 	${flowScope.myViewExpression}
 
-Use the externalRedirect: prefix to redirect to an external URL: +The externalRedirect: prefix may be used to request a redirect to an external location, typically to interface with an external system or controller. +External redirect query parameters may be specified using ${expressions} that evaluate against the request context. +The supported formats for an encoded externalRedirect expression are:
-	externalRedirect:/someController?orderId=${order.id}
-
-Use the flowRedirect: prefix to redirect to another flow: + externalRedirect: + externalRedirect:contextRelative: + externalRedirect:serverRelative: + externalRedirect:url: + +For example: +
+	externalRedirect:/hotels/index
+	externalRedirect:url:http://someOtherSystem?orderId=${order.id}
+
+The flowRedirect: prefix may be used to redirect to another flow:
 	flowRedirect:myOtherFlow?someData=${flowScope.data}
 
@@ -895,8 +918,8 @@ For exotic usages, you may plug in a custom ViewFactory bean you define: ${myCustomViewFactory}
-When this attribute is not specified, no final response will be issued. In this case, -the caller is expected to handle this flow outcome. +When this attribute is not specified, no final response will be issued. +In this case, the caller is expected to handle this flow outcome. ]]>