org.apache.jasper.runtime

Class ServletResponseWrapperInclude


public class ServletResponseWrapperInclude
extends HttpServletResponseWrapper

ServletResponseWrapper used by the JSP 'include' action. This wrapper response object is passed to RequestDispatcher.include(), so that the output of the included resource is appended to that of the including page.

Author:
Pierre Delisle

Constructor Summary

ServletResponseWrapperInclude(ServletResponse response, JspWriter jspWriter)

Method Summary

ServletOutputStream
getOutputStream()
PrintWriter
getWriter()
Returns a wrapper around the JspWriter of the including page.
void
resetBuffer()
Clears the output buffer of the JspWriter associated with the including page.

Constructor Details

ServletResponseWrapperInclude

public ServletResponseWrapperInclude(ServletResponse response,
                                     JspWriter jspWriter)

Method Details

getOutputStream

public ServletOutputStream getOutputStream()
            throws IOException


getWriter

public PrintWriter getWriter()
            throws IOException
Returns a wrapper around the JspWriter of the including page.


resetBuffer

public void resetBuffer()
Clears the output buffer of the JspWriter associated with the including page.


Copyright B) 2000 Apache Software Foundation. All Rights Reserved.