Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 15330 invoked from network); 3 Nov 2005 11:37:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Nov 2005 11:37:34 -0000 Received: (qmail 92716 invoked by uid 500); 3 Nov 2005 11:37:21 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 92691 invoked by uid 500); 3 Nov 2005 11:37:20 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 92660 invoked by uid 99); 3 Nov 2005 11:37:20 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Nov 2005 03:37:20 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of funkman@joedog.org designates 204.74.20.252 as permitted sender) Received: from [204.74.20.252] (HELO sid.armstrong.com) (204.74.20.252) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Nov 2005 03:37:15 -0800 Received: from [10.38.20.105] (tafunk-lt.americas.armstrong.com [10.38.20.105]) by sid.armstrong.com (8.12.8p1/8.12.8) with ESMTP id jA3BhxuH009727 for ; Thu, 3 Nov 2005 06:43:59 -0500 Message-ID: <4369F65A.5000306@joedog.org> Date: Thu, 03 Nov 2005 06:36:58 -0500 From: Tim Funk Organization: Human being User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.11) Gecko/20050728 X-Accept-Language: en-us, en, es-mx, de, sv MIME-Version: 1.0 To: Tomcat Users List Subject: Re: "Illegal to flush within a custom tag" References: <4369C6E9.1040109@axis.hu> In-Reply-To: <4369C6E9.1040109@axis.hu> Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N It looks like your custom tag is creating its own body content. The body content is handed back to the tag so furthur transformations may be done on it. So the whole tag needs evaluated and buffered before it may be flushed. Your tag is returning BodyTag.EVAL_BODY_BUFFERED during doStartTag(). If it returns Tag.EVAL_BODY_INCLUDE, then the contents in the tag will be writing directly to the current output buffer. -Tim Graf L�szl� wrote: > Hi > I have some custom tags which can have in body > other custom tag(s). Some of them list the content > of a ResultSet in HTML page. I used flush to force > the output of HTML. > > This solution works fine using IAS9i but ported to > JBoss 4.0.3 (what includes Tomcat 5.5.9) it throws > > "java.io.IOException: Illegal to flush within a custom tag > at javax.servlet.jsp.tagext.BodyContent.flush(BodyContent.java:79)". > > If I do comment those lines containing 'flush', the > output does not appear. How can I fix this problem? > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org