you'll already have a PrintWriter object in your page, all jsp's come with
one when they are compiled into a servlet by the app server. This is why you
can directly use PrintWriter out in your jsp without having to declare it
first.

Could this be your problem?

cheers,

Paul

> -----Original Message-----
> From: LouisVoo [mailto:[EMAIL PROTECTED]]
> Sent: 17 September 2001 21:35
> To: [EMAIL PROTECTED]
> Subject: Re: OutputStream
>
>
> > I am not calling the getoutputstream method anywhere else
> in my code..
>
> But, u said u have response.getOutputStream() in your jsp.
> So remove it
> from your JSP.
>
>
> >
> > yilmaz <[EMAIL PROTECTED]> on 17/09/2001 12:17:11
> >
> > Please respond to A mailing list about Java Server Pages
> specification and
> >       reference <[EMAIL PROTECTED]>
> >
> > To:   [EMAIL PROTECTED]
> > cc:    (bcc: Parag Patwa/LON/WLB)
> >
> > Subject:  Re: OutputStream
> >
> >
> >
> > hi parag
> > it seems that you already called printwriter in your code somewhere
> > and you are not allowed to call getoutputstream and
> getwriter at the same
> > time( in the same code).
> > so you have to choose one of htem
> > hope it helps
> > cheers :)
> > ----- Original Message -----
> > From: "Parag Patwa" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Monday, September 17, 2001 8:05 PM
> > Subject: OutputStream
> >
> >
> > > I have response.getOutputStream() in my jsp, but at
> runtime I get the
> > following
> > > error:
> > > java.lang.IllegalStateException: getOutputStream() has
> already been
> > called.
> > >
> > > Does anyone have any ideas?
> > >
> > > Parag
> > >
> > >
> > >
> > >
> > >
> > >
> > > Diese Nachricht ist vertraulich. Sie ist ausschliesslich fuer
> > > den im Adressfeld ausgewiesenen Adressaten bestimmt.
> > > Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten
> > > wir um eine kurze Nachricht. Jede unbefugte Weiterleitung
> > > oder Fertigung einer Kopie ist unzulaessig. Da wir nicht die
> > > Echtheit oder Vollstaendigkeit der in dieser Nachricht
> > > enthaltenen Informationen garantieren koennen, schliessen wir
> > > die rechtliche Verbindlichkeit der vorstehenden Erklaerungen
> > > und Aeusserungen aus. Wir verweisen in diesem Zusammenhang
> > > auch auf die  fuer die Bank geltenden Regelungen ueber die
> > > Verbindlichkeit von Willenserklaerungen mit verpflichtendem
> > > Inhalt, die in den bankueblichen Unterschriftenverzeichnissen
> > > bekannt gemacht werden.
> > >
> > > This message is confidential and may be privileged. It is
> > > intended solely for the named  addressee. If you are not the
> > > intended recipient please inform us. Any unauthorised
> > > dissemination, distribution or copying hereof is prohibited.
> > > As we cannot guarantee the  genuineness or completeness of
> > > the information contained in this message, the statements
> > > set forth above are not legally binding. In connection
> > > therewith, we also refer to the governing regulations of
> > > WestLB concerning signatory authority published in the
> > > standard bank signature lists with regard to the legally
> > > binding effect of statements made with the intent to
> > > obligate WestLB.
> > >
> > >
> >
> ==============================================================
> =============
> > > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> > JSP-INTEREST".
> > > For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST
> > DIGEST".
> > > Some relevant FAQs on JSP/Servlets can be found at:
> > >
> > >  http://java.sun.com/products/jsp/faq.html
> > >  http://www.esperanto.org.nz/jsp/jspfaq.html
> > >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> > >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> > >
> >
> >
> ==============================================================
> =============
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> > For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST
> DIGEST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.html
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > Diese Nachricht ist vertraulich. Sie ist ausschliesslich fuer
> > den im Adressfeld ausgewiesenen Adressaten bestimmt.
> > Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten
> > wir um eine kurze Nachricht. Jede unbefugte Weiterleitung
> > oder Fertigung einer Kopie ist unzulaessig. Da wir nicht die
> > Echtheit oder Vollstaendigkeit der in dieser Nachricht
> > enthaltenen Informationen garantieren koennen, schliessen wir
> > die rechtliche Verbindlichkeit der vorstehenden Erklaerungen
> > und Aeusserungen aus. Wir verweisen in diesem Zusammenhang
> > auch auf die  fuer die Bank geltenden Regelungen ueber die
> > Verbindlichkeit von Willenserklaerungen mit verpflichtendem
> > Inhalt, die in den bankueblichen Unterschriftenverzeichnissen
> > bekannt gemacht werden.
> >
> > This message is confidential and may be privileged. It is
> > intended solely for the named  addressee. If you are not the
> > intended recipient please inform us. Any unauthorised
> > dissemination, distribution or copying hereof is prohibited.
> > As we cannot guarantee the  genuineness or completeness of
> > the information contained in this message, the statements
> > set forth above are not legally binding. In connection
> > therewith, we also refer to the governing regulations of
> > WestLB concerning signatory authority published in the
> > standard bank signature lists with regard to the legally
> > binding effect of statements made with the intent to
> > obligate WestLB.
> >
> >
> ==============================================================
> =============
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> > For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST
> DIGEST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.html
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ==============================================================
> =============
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to