Below you can find an easy way to redirect to an external site via a Spring Webflow view state. What happens here is the following:
- a JSF command link backing bean action method returns the String link1
- Spring Webflow will redirect you to the viewstate OpenLink1
- The OpenLink1 view-state uses the externalRedirect functionality with a backingbean/dataholder stored link value
<view-state id=”myViewState” view=”/viewstates/mypage.jspx”>
<transition to=”OpenLink1″ on=”link1″/>
</view-state>
<view-state id=”OpenLink1″ view=”externalRedirect:${conversationScope.dataHolder.link1}”/>










October 6th, 2008 at 8:13 pm
is thr a way to set the redirect code?
October 7th, 2008 at 5:40 pm
I’m not sure what you’re exactly trying todo. Could you give us some more context?
Thanks,
Wim
December 3rd, 2008 at 11:52 am
How to set the errors while using external redirects… ?