RE: Output Volume
If something works OK with one piece of software, and not with another, then who is at fault? The one the program works with or the one it does not? This same dilemma occurred with someone running a program under Weblogic and Orion: It works for Orion but not for Weblogic. Try it with a couple other JSP engines, such as Tomcat (jakarta.apache.org) and Resin (www.caucho.com). Do they allow the same volume of output? -Original Message- From: Chandika Mendis [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 06, 2001 10:21 AM To: Orion-Interest 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;i1;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
Re: Output Volume
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;i1;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