Return-Path: Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 28533 invoked from network); 5 Sep 2003 14:36:35 -0000 Received: from unknown (HELO sid.armstrong.com) (204.74.20.252) by daedalus.apache.org with SMTP; 5 Sep 2003 14:36:35 -0000 Received: from joedog.org (fnord.armstrong.com [204.74.20.11]) by sid.armstrong.com (8.12.8p1/8.12.8) with ESMTP id h85EQjM0021154 for ; Fri, 5 Sep 2003 09:26:46 -0500 Message-ID: <3F589F13.8070106@joedog.org> Date: Fri, 05 Sep 2003 10:34:59 -0400 From: Tim Funk Organization: Human being User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en, es-mx, de, sv MIME-Version: 1.0 To: Tomcat Users List Subject: Re: forward error References: <5.2.1.1.0.20030905092752.022fa510@10.20.0.1> <9C5166762F311146951505C6790A9CF8A6EB48@US-VS1.corp.mpi.com> <9C5166762F311146951505C6790A9CF8A6EB48@US-VS1.corp.mpi.com> <5.2.1.1.0.20030905092752.022fa510@10.20.0.1> <5.2.1.1.0.20030905101620.0233dac0@10.20.0.1> In-Reply-To: <5.2.1.1.0.20030905101620.0233dac0@10.20.0.1> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N You can't prevent the whitespace. So as a kluge, I have a swallow tag for such occasions. In your tld ... swallow SwallowTag import java.io.IOException; import javax.servlet.jsp.JspException; import javax.servlet.jsp.tagext.BodyTagSupport; public class SwallowTag extends BodyTagSupport { public int doAfterBody() throws JspException { return SKIP_BODY; } public int doEndTag() throws JspException { try { pageContext.getOut().clearBuffer(); } catch(IOException e) { // silent ignore } return EVAL_PAGE; } } -Tim Maxime Colas des Francs wrote: > thanks ! > > i put all my loop in the same line and it's work. > > is there a solution for limit whitespace generated by JSTL code ? > > or i have to put all loop of my application in one line ?? > > > At 09:50 2003-09-05 -0400, you wrote: > >> The last thing your page does is . >> >> Before that is a loop. >> You are probably filling up the buffer with whitespace, then the >> repsonse gets committed when the buffer is full. >> >> -Tim >> >> Maxime Colas des Francs wrote: >> >>> Hi >>> thks for your response, but here is my code, i don't understand where >>> the response is commited ! >>> _____________ >>> <%@ page contentType="text/html; charset=iso-8859-1" language="java" >>> errorPage="/error_jsp.jsp"%> >>> <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %> >>> <%@ taglib prefix="log" >>> uri="http://jakarta.apache.org/taglibs/log-1.0" %> >>> <%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql" %> >>> >>> SELECT DISTINCT email FROM ctc ORDER by email >>> >>> >>> >>> >>> >>> >>> >> >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org >> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org > >