FileDocCategorySizeDatePackage
ViewMonthRenderer.javaAPI DocExample1211Sun Sep 02 14:59:06 BST 2001com.oreilly.forum.servlet

ViewMonthRenderer

public class ViewMonthRenderer extends Renderer
Renders a page that shows all messages in a given month.

Fields Summary
private BoardSummary
board
private MonthYear
month
Constructors Summary
public ViewMonthRenderer(BoardSummary board, MonthYear month)

        this.board = board;
        this.month = month;
    
Methods Summary
public voidrender(javax.servlet.http.HttpServlet servlet, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)

        try {
            // convert the data into XML (a JDOM Document)
            Document doc = new Document(ViewMonthJDOM.produceElement(
                    this.board, this.month));

            // apply the appropriate stylesheet
            XSLTRenderHelper.render(servlet, doc,
                    "viewMonth.xslt", response);
        } catch (DataException de) {
            throw new ServletException(de);
        }