Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在SpringWebFlow中的externalRedirect中设置cookie_Spring_Redirect_Cookies_Spring Webflow - Fatal编程技术网

在SpringWebFlow中的externalRedirect中设置cookie

在SpringWebFlow中的externalRedirect中设置cookie,spring,redirect,cookies,spring-webflow,Spring,Redirect,Cookies,Spring Webflow,我正在使用SpringWebFlow重定向到外部应用程序。 外部应用程序位于同一域中,并使用cookie设置一些数据。 问题是,我不确定是否可以在发送重定向之前设置cookie,以便外部应用程序已将cookie设置为读取详细信息 <webflow:view-state id="displayTerms" view="externalRedirect:#{flowScope.redirectURL}"> 这是将重定向到外部应用程序的视图状态。将其改为(或在之前插入),并在

我正在使用SpringWebFlow重定向到外部应用程序。 外部应用程序位于同一域中,并使用cookie设置一些数据。 问题是,我不确定是否可以在发送重定向之前设置cookie,以便外部应用程序已将cookie设置为读取详细信息

    <webflow:view-state id="displayTerms" view="externalRedirect:#{flowScope.redirectURL}">

这是将重定向到外部应用程序的视图状态。

将其改为
(或在
之前插入
),并在转换到重定向视图之前让
评估
设置cookie。WebFlow的部分优点在于,在不对现有代码进行深刻更改的情况下插入逻辑是多么容易