Hi Louis,

if the page output is unbuffered  and if you try to write something, you will get this error.


-M.Chitra
www.3rdagenda.com





At 10:58 AM 9/4/01 -0700, you wrote:

Hello,
 
    I have a jsp page which will forward to the servlet.  The servlet will generate a pdf file and then using the response.getOutputStream() to write the pdf file. So the user can download the pdf file.
    My problem is when I using response.getOutputStream() in my servlet class, I got java.lang.IllegalStateException, because the getWriter method has been called when parsing the jsp forward page.
    Any suggestion?
 
 
    Thank you.
 
 
 
Regards
 
Louis

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.265 / Virus Database: 137 - Release Date: 7/18/01

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.265 / Virus Database: 137 - Release Date: 7/18/01

Reply via email to