FileDocCategorySizeDatePackage
ServletResponseWrapperForWriter.javaAPI DocGlassfish v2 API3171Sat May 05 19:17:12 BST 2007org.apache.taglibs.standard.examples.util

ServletResponseWrapperForWriter

public class ServletResponseWrapperForWriter extends HttpServletResponseWrapper
ServletResponseWrapper used for the the generation of semi-dynamic pages.

This 'wrapped' response object is passed as the second argument to the internal RequestDispatcher.include(). It channels all output text into the PrintWriter specified in the constructor (which is associated with the file where the output of the JSP page has to be saved).

author
Pierre Delisle
version
$Revision: 1.3 $ $Date: 2007/05/06 02:17:12 $

Fields Summary
PrintWriter
writer
The writer that will get all the output of the response.
Constructors Summary
public ServletResponseWrapperForWriter(ServletResponse response, PrintWriter writer)

	super((HttpServletResponse)response);
	this.writer = writer;
    
Methods Summary
public java.io.PrintWritergetWriter()
Returns the Writer associated with the response.

	return writer;