Foros de discusión

Error redirect url webflow portlet: PortletRequest is not a ActionRequest

Said LOUNIS, modificado hace 8 años.

Error redirect url webflow portlet: PortletRequest is not a ActionRequest

Junior Member Mensajes: 46 Fecha de incorporación: 10/02/14 Mensajes recientes
Hello,
I would like to get out of a spring webflow to a subdomain via the URL ,
but I have this error: I understand that it is forbidden to redirect during a rendering phase ,
but as you see I'm in a phase Action : someone has an idea please to do a redirect

The exemple :
<action-state id="redirect">
<evaluate expression="redirectAction.redirectAction(flowRequestContext)" />
</action-state>

the controler:

public void redirectAccompagnementAction(RequestContext context ){
System.out.println("Said");
String urlString = "http://localhost:8080/web/cpxservicesv2/panier";
context.getExternalContext().requestExternalRedirect(urlString);

}


Thanks.