Hi there,

I have a servlet that caches all it's output in a buffer so that I can
control what gets sent to the browser and when. Now, I want to include the
generated output of a third party servlet in one of my servlet responses.

I looked at using RequestDispatcher.include(). It lets me call another
servlet, but it doesn't let me cache the output of that servlet!  Ouch!

It looks as if I could do what I wanted if I implemented my own "dummy"
ServletResponse which just cached the included servlet's into a buffer and
the extacted it once the include had finished. However, I thought maybe the
servlet engine may try and cast the ServletResponse back to it's own type
when you pass it to include()...

Does anyone know if this is "allowed" by the API, or perhaps there is a more
obvious way that I am missing. I had a quick look at the spec and it didn't
seem to mention it...

Cheers

Geoff

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to