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
ServletOutputStreamgetOutputStream()
PrintWritergetWriter()
Returns a wrapper around the JspWriter of the including page.
voidresetBuffer()
Clears the output buffer of the JspWriter associated with the including page.

Constructor Detail

ServletResponseWrapperInclude

public ServletResponseWrapperInclude(ServletResponse response, JspWriter jspWriter)

Method Detail

getOutputStream

public ServletOutputStream getOutputStream()

getWriter

public PrintWriter getWriter()
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 © 2000-2011 Apache Software Foundation. All Rights Reserved.