FileDocCategorySizeDatePackage
ViewMsgRenderer.javaAPI DocExample1040Sun Sep 02 14:59:04 BST 2001com.oreilly.forum.servlet

ViewMsgRenderer

public class ViewMsgRenderer extends Renderer
Show the "view message" page.

Fields Summary
private Message
message
private MessageSummary
inResponseTo
Constructors Summary
public ViewMsgRenderer(Message message, MessageSummary inResponseTo)

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


        // convert the data into XML (a JDOM Document)
        Document doc = new Document(ViewMessageJDOM.produceElement(
                this.message, this.inResponseTo));

        // apply the appropriate stylesheet
        XSLTRenderHelper.render(servlet, doc, "viewMsg.xslt", response);