Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

java.lang.IllegalStateException: getOutputStream() has already been called

807591Sep 21 2006 — edited May 6 2008
Thanks in advance for reading my query

when i try to display the pdf on jsp page i am getting this exception.

generally in jsp page we present the data using jsp writer but i need to present the pdf so i have used byte streams to display.

so i have used
OutputStream outstr =pageContext.getResponse().getOutputStream();

any help is appreciated
Thanks,
javamine
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 3 2008
Added on Sep 21 2006
11 comments
7,043 views