You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by peter royal <pr...@apache.org> on 2003/09/25 17:24:23 UTC
ForwardRedirector.hasRedirected and cocoon.redirectTo from Flow
Currently, the CallFunctionNode returns redirector.hasRedirected() as
its result during processing. Its redirector is an instance of a
ForwardRedirector.
Inside a flowscript, you can do cocoon.redirectTo to redirect the user
to a new page, but that redirects using the environment directly, not
the ForwardRedirector that the TreeProcessor is thinking about.
I've patched my ForwardRedirector to check to see if the Environment
that it wraps is a Redirector, and the
ForwardRedirector.hasRedirected() does an OR between its hasRedirected
and the Environment's hasRedirected.
This fixes my problem, I just wanted to verify that its a valid fix in
the global sense :)
-pete