You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Jörn Heid <he...@fh-heilbronn.de> on 2005/01/14 18:34:59 UTC

outputBufferSize problem

Hello.

I've used

<map:pipeline>
 <map:parameter name="outputBufferSize" value="1"/>

and
<map:pipes default="noncaching">
 <map:pipe name="noncaching"
src="org.apache.cocoon.components.pipeline.impl.NonCachingProcessingPipeline
">
   <parameter name="outputBufferSize" value="1"/>

to realize, that the output of a XSP file will be send to the client
directly, without any caching.

I used the  following XSP to test it:

<xsp:page language="java" xmlns:xsp="http://apache.org/xsp">
<html>
 <head>
  </head>
  <body>
   <div id="data">Text</div>
   <xsp:logic>
       try { Thread.sleep (3000); } catch (Exception ex) {}
   </xsp:logic>
    <script language="JavaScript">
      document.getElementById ('data').innerHTML = 'Test-Row 1';
    </script>
   <xsp:logic>
       try { Thread.sleep (3000); } catch (Exception ex) {}
   </xsp:logic>
    <script language="JavaScript">
      document.getElementById ('data').innerHTML = 'Test-Row 2';
    </script>
   <xsp:logic>
       try { Thread.sleep (3000); } catch (Exception ex) {}
   </xsp:logic>
    <script language="JavaScript">
      document.getElementById ('data').innerHTML = 'Test-Row 3';
    </script>
  </body>
</html>
</xsp:page>

Well, the page will be displayed 15s after asking the server...

Does anybody know the reason?

I'm using Cocoon 2.1.6 and Resin 3.0.10 on Win XP.

Regards,
JOERN_HEID


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org