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:     [EMAIL PROTECTED]
To unsubscribe, e-mail:          [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to