You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by ov...@apache.org on 2002/09/06 02:20:20 UTC

cvs commit: xml-cocoon2/src/java/org/apache/cocoon/components/flow/javascript system.js

ovidiu      2002/09/05 17:20:20

  Modified:    src/java/org/apache/cocoon/components/flow/javascript
                        system.js
  Log:
  No longer force the user to pass the URI prefix in the sitemap to the
  script. Instead it is automatically obtained from the Environment
  object, and added to the URI passed to sendPage() and sendPageAndContinue().
  
  Revision  Changes    Path
  1.3       +4 -3      xml-cocoon2/src/java/org/apache/cocoon/components/flow/javascript/system.js
  
  Index: system.js
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/flow/javascript/system.js,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- system.js	2 Jul 2002 08:32:07 -0000	1.2
  +++ system.js	6 Sep 2002 00:20:20 -0000	1.3
  @@ -27,20 +27,21 @@
   {
     var k = new Continuation();
     var kont = new WebContinuation(cocoon, k, lastContinuation, timeToLive);
  -  cocoon.forwardTo(uri, bizData, kont);
  +  cocoon.forwardTo("/" + cocoon.environment.getURIPrefix() + uri,
  +                   bizData, kont);
     suicide();
   }
   
   function sendPageAndContinue(uri, bizData)
   {
  -  cocoon.forwardTo(uri, bizData, null);
  +  cocoon.forwardTo("/" + cocoon.environment.getURIPrefix() + uri,
  +                   bizData, null);
   }
   
   function handleContinuation(kont)
   {
     kont.continuation(kont);
   }
  -
   
   // Action Support
   //
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org