cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Ratcliffe" <a...@mrigitech.com>
Subject [flow] global variable values lost between invocations
Date Thu, 20 Jan 2005 04:31:43 GMT
I have a flowscript where I set the value of a global variable, call
cocoon.session to create a session, but find
that it's value is undefined when I next invoke a top-level function in the
script.

An excerpt from the script where the variable's value is set is:

    var mapContext;
    ....
    function createContext() {
        mapContext = new MapContext();

        var session = cocoon.session;

        var redirectURI = cocoon.request.getParameter("redirectURI");

        cocoon.redirectTo(redirectURI);
    }

Any ideas on the possible causes of this behaviour would be much
appreciated.

Cheers
Adam

Mime
View raw message