When we have a servlet that does persistent connection, why do we have to have aByteArrayOutput.writeTo(res.getOutputStream()) even after we already sent out the required info through res.getWriter().println(info)?
William Brogden
Author and all-around good cowpoke
Rancher
Joined: Mar 22, 2000
Posts: 12266
1
posted
0
You appear to be doing a res.getOutputStream() after you already did a res.getWriter(). By my understanding of the API, that should cause a IllegalStateException to be thrown. Why do you think "why do we have to"? What is telling you that you have to do that? Bill