Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: com/sitemesh/taglib/decorator/BodyTag.java


1   package com.sitemesh.taglib.decorator;
2   
3   import com.sitemesh.HTMLPage;
4   import com.sitemesh.taglib.AbstractTag;
5   import javax.servlet.ServletOutputStream;
6   import javax.servlet.jsp.JspException;
7   
8   /**
9    * Write original HTMLPage body to out.
10   *
11   * @author <a href="joe@truemesh.com">Joe Walnes</a>
12   * @version $Revision: 1.2 $
13   *
14   * @see com.sitemesh.HTMLPage#writeBody(java.io.OutputStream)
15   */
16  public class BodyTag extends AbstractTag {
17  
18    public int doEndTag() throws JspException {
19      try {
20        HTMLPage htmlPage = ( HTMLPage )getPage();
21        htmlPage.writeBody( pageContext.getOut() );
22      }
23      catch ( Exception e ) {
24        trace(e);
25      }
26      return EVAL_PAGE;
27    }
28  
29  }