Can You Make Use of a ServletOutputStream Object From within a JSP Page
No. You are supposed to make use of only a JSPWriter object (given to you in the form of the implicit object out) for replying to clients. A JSPWriter can be viewed as a buffered version of the stream object returned by response.getWriter(), although from an implementational perspective, it is not. In general, it is not recommended to use a ServletOutputStream directly from within a JSP page. The JSP (JavaServer Pages) technology is designed to separate presentation logic from business…