Dear Vit.

thank you very much for your advice. It works now as I wanted it to work --
without the need to place it in a servlet. Thanks!

Kind regards
 Sven Spreier

-----Urspr�ngliche Nachricht-----
Von: "Vitaly Shorin" <[EMAIL PROTECTED]>
An: "JRun-Talk" <[EMAIL PROTECTED]>
Gesendet: Sonntag, 31. Dezember 2000 09:26
Betreff: Re: jsp and getOutputstream


> Hi,
> you should place
>
> response.reset();
> ServletOutputStream sos=response.getOutputStream();
>
> After response.reset() you may choose what to use either
response.getWriter
> (as JSP do by default) or  response.getOutputStream().
>
> Regards,
> Vit.
>
>
> ----- Original Message -----
> From: "Scott Stirling" <[EMAIL PROTECTED]>
> To: "JRun-Talk" <[EMAIL PROTECTED]>
> Sent: Sunday, December 31, 2000 9:24 AM
> Subject: RE: jsp and getOutputstream
>
>
> > You can override the _jspService method of the JSP.  That's the only way
I
> > know of.
> >
> > Why use a JSP for what you're doing?  It probably won't be a very clean
> > looking JSP.  One suggestion is to write a custom tag that does whatever
> > output stream processing you need, or (another suggestion) write a
servlet
> > to do it and have the JSP forward or include the servlet.
> >
> > I'd be glad to bounce ideas around.  If you discuss it in a bit more
> detail
> > on the list, someone whose done something similar to what you're trying
to
> > do may pipe in with a solution.
> >
> > Best regards,
> > Scott Stirling
> >
> > > -----Original Message-----
> > > From: Sven Spreier [mailto:[EMAIL PROTECTED]]
> > > Sent: Friday, December 29, 2000 10:52 AM
> > > To: JRun-Talk
> > > Subject: jsp and getOutputstream
> > >
> > >
> > > Hello
> > >
> > > do I have the possibility to prevent the JSP-engine from calling the
> > > statement
> > >
> > >         JspWriter out = pageContext.getOut();
> > > ?
> > >
> > > I do not want to have the intrinsic out-writer, because after
> > > this I can not
> > > write binary content with an outputstream. Do I need to write a
servlet
> to
> > > do this, because it is allways illegal to call
> > > "response.getOutputStream()"
> > > from a jsp?
> > >
> > > Kind regards
> > >  Sven Spreier
> >
> >
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to