I haven't resolved this problem so much as figured out what's causing it.

The jsp servlet that ships with tomcat gets a Writer to write a response.

The cocoon servlet on the other hand uses the OutputStream.

or in the case of my example TRIES to use the OutputStream, but cannot
because tomcat seeing that the Writer is already being used, throws an
IllegalStateException.

Does anyone know if this can or will be resolved (its the same using C1 and
C2)? e.g. by giving the option of using a Writer in cocoon rather than the
OutputStream.

Failing that, can anyone offer an alternative to integrating a mass of jsp
with some choice pieces of xsp. I can achieve the desired effect by opening
a HTTP socket from the jsp page to the xsp, but this seems unnecessarily
expensive.

cheers,
mooch.
-----Original Message-----
From: Alessandro Marcellini [mailto:[EMAIL PROTECTED]]
Sent: 25 May 2001 11:28
To: [EMAIL PROTECTED]
Subject: Re: Can you include output of an xsp page in a jsp page.


Hi,
Have you resolved your problem?
I'm facing the same problem ...
Thank's
    Alessandro

"Yap, Mow Ching (NOW)" wrote:

> hi,
>
> Question: Can you include output of an xsp page in a jsp page? (Would help
> to integrate xsp into an existing jsp codebase)
>
> As in:
>
> <jsp:include page="/xml/simple.xml" flush="true"></jsp:include>
>
> when i try this, cocoon outputs:
>
>         java.lang.IllegalStateException: Writer is already being used for
> this request
>
> if i make the include the only line in the jsp page, it works.
>
> if i make the include the first line then add text after, i get the xml,
but
> then tomcat outputs:
>
>         java.lang.IllegalStateException: OutputStream is already being
used
> for this request
>
> so does anyone know how i can get tomcat and cocoon to share the same
> outputstream?
>
> tks.
> mooch.
> (tomcat 3.1, cocoon 1.8.2)
>
> The information in this Internet E-mail is confidential and is intended
> solely for the addressee. Access, copying or re-use of information in it
by
> anyone else is unauthorized. Any views or opinions presented are solely
> those of the author and do not necessarily represent those of TWI, TWIi,
> IMG, PCC, NOW or any of their affiliates. If you are not the intended
> recipient please contact [EMAIL PROTECTED] and delete this email
> immediately.
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>



The information in this Internet E-mail is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it by
anyone else is unauthorized. Any views or opinions presented are solely
those of the author and do not necessarily represent those of TWI, TWIi,
IMG, PCC, NOW or any of their affiliates. If you are not the intended
recipient please contact [EMAIL PROTECTED] and delete this email
immediately.

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to