org.chwf.taglib.jutil
Class PrintTag
java.lang.Object
|
+--javax.servlet.jsp.tagext.TagSupport
|
+--org.chwf.taglib.base.LifeCycleTagSupport
|
+--org.chwf.taglib.base.ObjectTagSupport
|
+--org.chwf.taglib.jutil.PrintTag
- All Implemented Interfaces:
- Parameterized, java.io.Serializable, javax.servlet.jsp.tagext.Tag
- public class PrintTag
- extends ObjectTagSupport
Tag handler for the <print>
tag.
- Author:
- Paul Strack
- See Also:
- Serialized Form
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext |
Fields inherited from interface javax.servlet.jsp.tagext.Tag |
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Method Summary |
void |
cleanup()
Clean up data for tag handler reuse and pooling. |
int |
doStart()
Prints the tag value. |
java.lang.String |
getAttribute()
Property attribute to print (if any). |
java.lang.String |
getDatatype()
Logical datatype. |
void |
setAttribute(java.lang.String attribute)
Property attribute to print (if any). |
void |
setDatatype(java.lang.String datatype)
Logical datatype. |
void |
setEl(java.lang.String el)
Calls superclass method. |
void |
setObject(java.lang.String objectName)
Calls superclass method. |
void |
setProperty(java.lang.String property)
Calls superclass method. |
Methods inherited from class org.chwf.taglib.base.LifeCycleTagSupport |
addAttribute, addParameter, doEnd, doEndTag, doStartTag, getAttribute, getAttributeNames, getParameter, getParameterNames, init, printAttributes |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PrintTag
public PrintTag()
cleanup
public void cleanup()
- Clean up data for tag handler reuse and pooling. Should be overridden in
tag handler. Subclasses should always invoke their superclass's cleanup
method:
super.cleanup()
- Overrides:
cleanup
in class ObjectTagSupport
setObject
public void setObject(java.lang.String objectName)
throws javax.servlet.jsp.JspException
- Calls superclass method. Is present here because of a bug in some servlet
engines that requires tag attibute setters to be defined in the tag class
itself.
- Overrides:
setObject
in class ObjectTagSupport
- Parameters:
objectName
- The object name.- Throws:
javax.servlet.jsp.JspException
- For errors.
setProperty
public void setProperty(java.lang.String property)
throws javax.servlet.jsp.JspException
- Calls superclass method. Is present here because of a bug in some servlet
engines that requires tag attibute setters to be defined in the tag class
itself.
- Overrides:
setProperty
in class ObjectTagSupport
- Parameters:
property
- The property name.- Throws:
javax.servlet.jsp.JspException
- For errors.
setEl
public void setEl(java.lang.String el)
- Calls superclass method. Is present here because of a bug in some servlet
engines that requires tag attibute setters to be defined in the tag class
itself.
- Overrides:
setEl
in class ObjectTagSupport
- Parameters:
el
- The JSTL Expression Language statement.
setDatatype
public void setDatatype(java.lang.String datatype)
- Logical datatype.
- Parameters:
datatype
- Logical datatype.
getDatatype
public java.lang.String getDatatype()
- Logical datatype.
- Returns:
- Logical datatype.
setAttribute
public void setAttribute(java.lang.String attribute)
- Property attribute to print (if any).
- Parameters:
attribute
- Property attribute to print (if any).
getAttribute
public java.lang.String getAttribute()
- Property attribute to print (if any).
- Returns:
- Property attribute to print (if any).
doStart
public int doStart()
throws java.io.IOException,
javax.servlet.jsp.JspException
- Prints the tag value.
- Overrides:
doStart
in class LifeCycleTagSupport
- Returns:
- SKIP_BODY
- Throws:
java.io.IOException
- For IO exceptions.javax.servlet.jsp.JspException
- For parsiing errors.
Copyright © 2002-2004, Paul Strack. All Rights Reserved.