unless you show us some relevant code, how do you think we can guess how to fix your problem?
– Bozho
2 Answers
6
votes
You cannot call bothgetOutputStream() and getWriter() on the same response. Keep in mind that JSP implicitly uses getWriter().
1
votes
Also make sure that the request is not being redirected to current servlet from some place else. If it is, then there is a high probability that one of getOutputStream() or getWriter() has already been called on it.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more