01: /*
02: * Title: BodyTag
03: * Description:
04: *
05: * This software is published under the terms of the OpenSymphony Software
06: * License version 1.1, of which a copy has been included with this
07: * distribution in the LICENSE.txt file.
08: */
09:
10: package com.opensymphony.module.sitemesh.taglib.decorator;
11:
12: import com.opensymphony.module.sitemesh.taglib.AbstractTag;
13:
14: /**
15: * Write original Page body to out.
16: *
17: * @author <a href="joe@truemesh.com">Joe Walnes</a>
18: * @author <a href="scott@atlassian.com">Scott Farquhar</a>
19: * @version $Revision: 1.2 $
20: *
21: * @see com.opensymphony.module.sitemesh.HTMLPage#writeBody(java.io.Writer)
22: */
23: public class BodyTag extends AbstractTag {
24: public final int doEndTag() {
25: try {
26: getPage().writeBody(getOut());
27: } catch (Exception e) {
28: trace(e);
29: }
30: return EVAL_PAGE;
31: }
32:
33: }
|