cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Mazzocchi <stef...@apache.org>
Subject Re: RequestDispatcher & engine.java
Date Tue, 01 Feb 2000 23:12:05 GMT
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.
<stefano@apache.org>                             Friedrich Nietzsche
--------------------------------------------------------------------
 Come to the first official Apache Software Foundation Conference!  
------------------------- http://ApacheCon.Com ---------------------



Mime
View raw message