org.chwf.taglib.jutil
Class NewTag
java.lang.Object
|
+--javax.servlet.jsp.tagext.TagSupport
|
+--org.chwf.taglib.base.LifeCycleTagSupport
|
+--org.chwf.taglib.jutil.NewTag
- All Implemented Interfaces:
- Parameterized, java.io.Serializable, javax.servlet.jsp.tagext.Tag
- public class NewTag
- extends LifeCycleTagSupport
Tag handler for the <new>
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()
Creates the object. |
java.lang.String |
getType()
The class name of the new object. |
java.lang.String |
getVar()
The variable name. |
void |
setType(java.lang.String type)
The class name of the new object. |
void |
setVar(java.lang.String var)
The variable name. |
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 |
NewTag
public NewTag()
setVar
public void setVar(java.lang.String var)
- The variable name.
- Parameters:
var
- The variable name.
getVar
public java.lang.String getVar()
- The variable name.
- Returns:
- The variable name.
setType
public void setType(java.lang.String type)
- The class name of the new object.
- Parameters:
type
- The class name of the new object.
getType
public java.lang.String getType()
- The class name of the new object.
- Returns:
- The class name of the new object.
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 LifeCycleTagSupport
doStart
public int doStart()
throws javax.servlet.jsp.JspException
- Creates the object.
- Overrides:
doStart
in class LifeCycleTagSupport
- Returns:
- SKIP_BODY
- Throws:
javax.servlet.jsp.JspException
- For IO exceptions.
Copyright © 2002-2004, Paul Strack. All Rights Reserved.