KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mmbase > bridge > jsp > taglib > functions > FunctionTag


1 /*
2
3 This software is OSI Certified Open Source Software.
4 OSI Certified is a certification mark of the Open Source Initiative.
5
6 The license (Mozilla version 1.0) can be read at the MMBase site.
7 See http://www.MMBase.org/license
8
9 */

10 package org.mmbase.bridge.jsp.taglib.functions;
11
12 import javax.servlet.jsp.*;
13
14 import org.mmbase.bridge.jsp.taglib.Writer;
15 import org.mmbase.bridge.jsp.taglib.containers.FunctionContainerReferrer;
16
17 /**
18  * A 'Writer' function tag. The result of the function is available as String and can be written to
19  * the page (or the body of the tag can be used to compare it and so
20  *
21  * @author Michiel Meeuwissen
22  * @since MMBase-1.7
23  * @version $Id: FunctionTag.java,v 1.5 2005/03/14 19:02:35 michiel Exp $
24  */

25 public class FunctionTag extends AbstractFunctionTag implements Writer, FunctionContainerReferrer {
26
27     public int doStartTag() throws JspTagException {
28         Object JavaDoc value = getFunctionValue();
29         helper.setValue(value);
30         return EVAL_BODY_BUFFERED;
31     }
32     public int doAfterBody() throws JspException {
33         return helper.doAfterBody();
34     }
35     public int doEndTag() throws JspTagException {
36         helper.doEndTag();
37         return super.doEndTag();
38     }
39
40 }
41
Popular Tags