This is the way that I understand it.

You can call getOutputStream multiple times but you can't mix getWriter and
getOutputStream calls in the same session.

I never call getWriter any more because if you use other API's, for instance
to do JHTML, they call getOutPutStream in the session before the response
and request are passed to your servlet so you can never call getWriter.

Hope this helps,

Marty Elvidge

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Uwe Schaefer
Sent: Tuesday, March 30, 1999 8:38 AM
To: Java-Servlets
Subject: Re[2]: jserv SSI exception



   [Urspr�ngliche Nachricht]
   Von: "Narum, Snorre" <[EMAIL PROTECTED]>
   An: "'Java-Servlets'" <[EMAIL PROTECTED]>
   Datum: Tue, 30 Mar 1999 14:37:34 +0200
   Betreff: RE: jserv SSI exception
____

> hm, didnt seem to make much difference. oops. hehe.

<g> my fault. In my case i used getOutputStream as well as getWriter :)

but: Why the hell is it not allowed to call getOutputStream() twice ?
not that it makes a big difference, but i simply do not understand the
reason for that behaviour.

any wise people around ?

MfG Uwe Schaefer
______________________________________________
Email: [EMAIL PROTECTED]
Fido:  2:2448/2000.0 V34,X75,CM
ICQ:   15481787
Fax:   0203-435063



------------------------------------------------------------
To subscribe:    [EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Problems?:       [EMAIL PROTECTED]



------------------------------------------------------------
To subscribe:    [EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Problems?:       [EMAIL PROTECTED]

Reply via email to