A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Java
»
Servlets
Author
cannot call getOutputStream() after getWriter()
sreedhar somi
Greenhorn
Joined: Jun 27, 2006
Posts: 2
posted
Jun 27, 2006 04:42:00
0
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
Joined: Dec 11, 2004
Posts: 13410
I like...
posted
Jun 27, 2006 05:08:00
0
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
Java API
J2EE API
Servlet Spec
JSP Spec
How to ask a question...
Simple Servlet Examples
jsonf
I agree. Here's the link:
http://zeroturnaround.com/jrebel
- it saves me about five hours per week
subject: cannot call getOutputStream() after getWriter()
Similar Threads
setContentType and getOutputStream
confused on SCWCD Kit's Errata on Page 41.
Doubt on RequestDispatcher
Create HttpResponse 's object
Good question
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter