KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > opensymphony > module > sitemesh > taglib > decorator > HeadTag


1 /*
2  * Title: HeadTag
3  * Description:
4  *
5  * This software is published under the terms of the OpenSymphony Software
6  * License version 1.1, of which a copy has been included with this
7  * distribution in the LICENSE.txt file.
8  */

9
10 package com.opensymphony.module.sitemesh.taglib.decorator;
11
12 import com.opensymphony.module.sitemesh.HTMLPage;
13 import com.opensymphony.module.sitemesh.taglib.AbstractTag;
14
15 /**
16  * Write original HTMLPage head to out.
17  *
18  * @author <a HREF="joe@truemesh.com">Joe Walnes</a>
19  * @version $Revision: 1.2 $
20  *
21  * @see com.opensymphony.module.sitemesh.HTMLPage#writeHead(java.io.Writer)
22  */

23 public class HeadTag extends AbstractTag {
24     public final int doEndTag() {
25         try {
26             HTMLPage htmlPage = (HTMLPage)getPage();
27             htmlPage.writeHead(getOut());
28         }
29         catch (Exception JavaDoc e) {
30             trace(e);
31         }
32         return EVAL_PAGE;
33     }
34 }
Popular Tags