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

Reply via email to