A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
how to avoid response.getOutputStream() exception
Joined: Jan 28, 2006
Dec 27, 2006 08:53:00
iam getting response.getOutputStream() has been already called exception
in my action class.
but i didnot called that in my project
that is coming from other code which is not accessible for me
so my question is how can i avoid that exception
it is creating much problem in my code while updating database
thanks in advance
Joined: Feb 24, 2006
Dec 27, 2006 09:31:00
Why do you need to get the output stream to update the database ? Can you post code here ?
SCJP 6 articles
SCJP 5/6 mock exams
More SCJP Mocks
Joined: Nov 16, 2005
Dec 27, 2006 11:35:00
response.getOutputStream() is used to reply raw bytes to client. How can It be realted with DB?
outputStream can be get only once for response. If you try to get second time you will get exception. You cannot avoid it.
Can you explain little bit about your problem?
Prabhu Venkatachalam<br />SCJP 1.4,SCWCD 1.4<br />email@example.com
Have you checked out
subject: how to avoid response.getOutputStream() exception
Not able to open new browser instance for opening a xls in Secure Mode
IllegalStateException: getOutputStream() has already been called for this response
passing a Vector from JSP to an applet
See this code why it gives exception
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015