Return-Path: Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 79871 invoked from network); 1 Feb 2000 23:24:38 -0000 Received: from pop.systemy.it (194.20.140.28) by 63.211.145.10 with SMTP; 1 Feb 2000 23:24:38 -0000 Received: from apache.org (pv14-pri.systemy.it [194.21.255.14]) by pop.systemy.it (8.8.8/8.8.3) with ESMTP id AAA04479 for ; Wed, 2 Feb 2000 00:24:35 +0100 Message-ID: <38976845.DBB43E0A@apache.org> Date: Wed, 02 Feb 2000 00:12:05 +0100 From: Stefano Mazzocchi Organization: Apache Software Foundation X-Mailer: Mozilla 4.7 [en] (Win98; I) X-Accept-Language: en,it MIME-Version: 1.0 To: cocoon-dev@xml.apache.org Subject: Re: RequestDispatcher & engine.java References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mike Engelhart wrote: > > OK - I've been digging through Cocoon source code and I think what is needed > is the ability to determine if a RequestDispatcher has been created with the > HttpServletRequest.getRequestDispatcher() or > ServletContext.getRequestDispatcher() method calls. If so then I want to > skip over the code in the Engine.handle() that gets a PrintWriter and writes > out to it. What I'm struggling with is how to determine if a > RequestDispatcher has been created. I've been looking at the jsdk 2.2 api > for the last hour and can't find anything way to determine this. Anyone > have any idea how to find this out? What about doing a try-catch around getWriter()? if an illegalstate is caught, we skip it over. What do you think? -- Stefano Mazzocchi One must still have chaos in oneself to be able to give birth to a dancing star. Friedrich Nietzsche -------------------------------------------------------------------- Come to the first official Apache Software Foundation Conference! ------------------------- http://ApacheCon.Com ---------------------