Using ServletOutputStream Object in JSP Pages


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.

2007-04-03, 5228👍, 0💬