JSP's are not designed to deliver binary content.  They're a template engine
for processing text output.  Use a Servlet instead.
    (*Chris*)

----- Original Message -----
From: "Joe Gonzalez" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 10, 2001 2:29 PM
Subject: [JSP-INTEREST] Binary output from a JSP


> After searching the various FAQ's and a a couple of hour's worth of
> experimentation, it seems that
> there isn't a way to send binary data (e.g. jpegs, gifs, etc.) out of a
JSP.
> I keep tripping on
> a "java.lang.IllegalStateException: getOutputStream() has already been
> called for this response".
> I hope I am wrong on this point and someone can point out a correct
method.
> Is there a way to tell
> the JspFactory not to setup the JspWriter (under tomcat 4b7) ?
>
> Thanks for any info.
>
> Joe Gonzalez
>
>
===========================================================================
> 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


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


===========================================================================
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