cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vgritse...@apache.org
Subject cvs commit: cocoon-2.1/src/blocks/scratchpad/java/org/apache/cocoon/components/flow/javascript/fom AO_FOM_Cocoon.java
Date Tue, 28 Oct 2003 17:22:17 GMT
vgritsenko    2003/10/28 09:22:17

  Modified:    src/blocks/scratchpad/java/org/apache/cocoon/components/flow/javascript/fom
                        AO_FOM_Cocoon.java
  Log:
  Fix redirector bug
  
  Revision  Changes    Path
  1.4       +5 -2      cocoon-2.1/src/blocks/scratchpad/java/org/apache/cocoon/components/flow/javascript/fom/AO_FOM_Cocoon.java
  
  Index: AO_FOM_Cocoon.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/scratchpad/java/org/apache/cocoon/components/flow/javascript/fom/AO_FOM_Cocoon.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- AO_FOM_Cocoon.java	24 Sep 2003 22:00:34 -0000	1.3
  +++ AO_FOM_Cocoon.java	28 Oct 2003 17:22:17 -0000	1.4
  @@ -65,6 +65,7 @@
   import org.apache.cocoon.components.flow.ContinuationsManager;
   import org.apache.cocoon.components.flow.WebContinuation;
   import org.apache.cocoon.components.flow.Interpreter.Argument;
  +import org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode;
   import org.apache.cocoon.environment.Cookie;
   import org.apache.cocoon.environment.Environment;
   import org.apache.cocoon.environment.ObjectModelHelper;
  @@ -199,7 +200,9 @@
       }
   
       public void jsFunction_redirectTo(String uri) throws Exception {
  -        environment.redirect(false, uri);
  +        // Cannot use environment directly as TreeProcessor uses own version of redirector
  +        // environment.redirect(false, uri);
  +        PipelinesNode.getRedirector(environment).redirect(false, uri);
       }
   
       /*
  
  
  

Mime
View raw message