Check your implicit out object (Type JSPWriter).  You can get the size of
the output buffer from the bufferSize property and you can flush your output
buffers before you hit that size.

e.g.



// output something
out.println("...");

if (out.getRemaining() < someComfortableMargin) {
    out.flush();
    out.clear();
}

// keep on outputting
out.println("...");
-- 

-Geoff Marshall, Director of Development

.......................................................
t e r r a s c o p e                      (415) 951-4944
54 Mint Street, Suite 110         direct (415) 625-0349
San Francisco, CA  94103             fax (415) 625-0306
.......................................................

> From: "Chandika Mendis" <[EMAIL PROTECTED]>
> Reply-To: Orion-Interest <[EMAIL PROTECTED]>
> Date: Tue, 6 Feb 2001 08:21:13 -0800
> To: Orion-Interest <[EMAIL PROTECTED]>
> Subject: Output Volume
> 
> I'm trying to run a very simple JSP that gives a rather large volume of
> output. It loads the first time but fails the second time.(was doing some
> performance comparisons). The same JSP works fine with ServletExec. Any help
> will be appreciated.
> 
> 
> I've attached the JSP below:-
> 
> <%@page language="java" import="java.util.* %>
> <HTML>
> <BODY>
> <%
> 
> Date st=new Date();
> StringBuffer fullString=new StringBuffer();
> for (int i=0;i<10000;i++){
> out.println("Some string concatenation blah blah blah "+i+"<BR>");
> }
> Date end=new Date();
> out.println("Time elapsed :"+(end.getTime()-st.getTime()));
> %>
> </BODY>
> </HTML>
> 
> 
> 
> 


Reply via email to