在SpringWebFlow中的externalRedirect中设置cookie
我正在使用SpringWebFlow重定向到外部应用程序。 外部应用程序位于同一域中,并使用cookie设置一些数据。 问题是,我不确定是否可以在发送重定向之前设置cookie,以便外部应用程序已将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}"> 这是将重定向到外部应用程序的视图状态。将其改为(或在之前插入),并在
<webflow:view-state id="displayTerms" view="externalRedirect:#{flowScope.redirectURL}">
这是将重定向到外部应用程序的视图状态。将其改为
(或在
之前插入
),并在转换到重定向视图之前让评估设置cookie。WebFlow的部分优点在于,在不对现有代码进行深刻更改的情况下插入逻辑是多么容易