Bookmark Topic Watch Topic
  • New Topic

cannot call getOutputStream() after getWriter()

 
sreedhar somi
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Report post to moderator
This is the line which throws the exception, and i didn't call
getWriter() at all before this.

OutputStream out = response.getOutputStream();
wb.write(out);
out.close();

I am using poi api(servlets) for generating excel sheets.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Report post to moderator
sreedhar somi,

Don't start a new thread to continue a discussion.
Go to the original thread and click the "reply" button to add a new post.

http://www.coderanch.com/t/362882/Servlets/java/cannot-call-getoutputstream-after-getwriter
 
    Bookmark Topic Watch Topic
  • New Topic